<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="ie=edge"><meta id="viewport" name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,shrink-to-fit=no"/><meta name="apple-mobile-web-app-capable" content="yes"><title>Build Time Report</title><style>html {
        height: 100%;
      }

      body {
        height: 100%;
        font-family: monospace;
      }

      .root {
        display: flex;
        flex-direction: column;
        height: 100%;
      }
      
      .footer {
        margin-top: 24px;
        display: flex;
      }

      #wrapper {
        padding: 20px;
        border: 1px solid black;
        flex: 1;
        height: 90%;
      }
      
      .selectedNode {
        margin-left: 5px;
        width: 100%;
        display: flex;
      }

      #selected-node {
        padding: 10px;
        width: 100%;
        /* word-break: break-all; */
        /* display: block; */
        font-family: monospace;
        white-space: break-spaces;
        margin: 1em 0px;
      }

      #table-node {
        padding: 0px;
        width: 100%;
        display: block;
        font-family: monospace;
        margin: 1em 0px;
      }
      table.dataTable tr.odd { background-color: #E2E4FF;}
      table.dataTable tr.even { background-color: white;}
      table.dataTable td {
        white-space: nowrap; 
      }</style><script>(()=>{var e={168:(e,t,n)=>{var r=n(874),i={};for(var a in r)r.hasOwnProperty(a)&&(i[r[a]]=a);var o=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in o)if(o.hasOwnProperty(s)){if(!("channels"in o[s]))throw new Error("missing channels property: "+s);if(!("labels"in o[s]))throw new Error("missing channel labels property: "+s);if(o[s].labels.length!==o[s].channels)throw new Error("channel and label counts mismatch: "+s);var l=o[s].channels,c=o[s].labels;delete o[s].channels,delete o[s].labels,Object.defineProperty(o[s],"channels",{value:l}),Object.defineProperty(o[s],"labels",{value:c})}o.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.min(r,i,a),s=Math.max(r,i,a),l=s-o;return s===o?t=0:r===s?t=(i-a)/l:i===s?t=2+(a-r)/l:a===s&&(t=4+(r-i)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(o+s)/2,[t,100*(s===o?0:n<=.5?l/(s+o):l/(2-s-o)),100*n]},o.rgb.hsv=function(e){var t,n,r,i,a,o=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(o,s,l),h=c-Math.min(o,s,l),u=function(e){return(c-e)/6/h+.5};return 0===h?i=a=0:(a=h/c,t=u(o),n=u(s),r=u(l),o===c?i=r-n:s===c?i=1/3+t-r:l===c&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*a,100*c]},o.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[o.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,r))),100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},o.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},o.rgb.keyword=function(e){var t=i[e];if(t)return t;var n,a,o,s=1/0;for(var l in r)if(r.hasOwnProperty(l)){var c=r[l],h=(a=e,o=c,Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)+Math.pow(a[2]-o[2],2));h<s&&(s=h,n=l)}return n},o.keyword.rgb=function(e){return r[e]},o.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},o.rgb.lab=function(e){var t=o.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},o.hsl.rgb=function(e){var t,n,r,i,a,o=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[a=255*l,a,a];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var c=0;c<3;c++)(r=o+1/3*-(c-1))<0&&r++,r>1&&r--,a=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[c]=255*a;return i},o.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,a=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=a<=1?a:2-a,[t,100*(0===r?2*i/(a+i):2*n/(r+n)),100*((r+n)/2)]},o.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,l,o];case 1:return[s,r,o];case 2:return[o,r,l];case 3:return[o,s,r];case 4:return[l,o,r];case 5:return[r,o,s]}},o.hsv.hsl=function(e){var t,n,r,i=e[0],a=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return r=(2-a)*o,n=a*s,[i,100*(n=(n/=(t=(2-a)*s)<=1?t:2-t)||0),100*(r/=2)]},o.hwb.rgb=function(e){var t,n,r,i,a,o,s,l=e[0]/360,c=e[1]/100,h=e[2]/100,u=c+h;switch(u>1&&(c/=u,h/=u),r=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(r=1-r),i=c+r*((n=1-h)-c),t){default:case 6:case 0:a=n,o=i,s=c;break;case 1:a=i,o=n,s=c;break;case 2:a=c,o=n,s=i;break;case 3:a=c,o=i,s=n;break;case 4:a=i,o=c,s=n;break;case 5:a=n,o=c,s=i}return[255*a,255*o,255*s]},o.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},o.xyz.rgb=function(e){var t,n,r,i=e[0]/100,a=e[1]/100,o=e[2]/100;return n=-.9689*i+1.8758*a+.0415*o,r=.0557*i+-.204*a+1.057*o,t=(t=3.2406*i+-1.5372*a+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},o.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},o.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var a=Math.pow(n,3),o=Math.pow(t,3),s=Math.pow(r,3);return n=a>.008856?a:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},o.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},o.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},o.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var a=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(a+=60),a},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},o.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},o.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},o.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},o.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,a=Math.max(Math.max(n,r),i),o=Math.min(Math.min(n,r),i),s=a-o;return t=s<=0?0:a===n?(r-i)/s%6:a===r?2+(i-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?o/(1-s):0)]},o.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},o.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},o.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,a=[0,0,0],o=t%1*6,s=o%1,l=1-s;switch(Math.floor(o)){case 0:a[0]=1,a[1]=s,a[2]=0;break;case 1:a[0]=l,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=s;break;case 3:a[0]=0,a[1]=l,a[2]=1;break;case 4:a[0]=s,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=l}return i=(1-n)*r,[255*(n*a[0]+i),255*(n*a[1]+i),255*(n*a[2]+i)]},o.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},o.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},o.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},o.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]},o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},85:(e,t,n)=>{var r=n(168),i=n(111),a={};Object.keys(r).forEach((function(e){a[e]={},Object.defineProperty(a[e],"channels",{value:r[e].channels}),Object.defineProperty(a[e],"labels",{value:r[e].labels});var t=i(e);Object.keys(t).forEach((function(n){var r=t[n];a[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i<r;i++)n[i]=Math.round(n[i]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),a[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=a},111:(e,t,n)=>{var r=n(168);function i(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,i=0;i<n;i++)e[t[i]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var i=n.pop(),a=Object.keys(r[i]),o=a.length,s=0;s<o;s++){var l=a[s],c=t[l];-1===c.distance&&(c.distance=t[i].distance+1,c.parent=i,n.unshift(l))}return t}function a(e,t){return function(n){return t(e(n))}}function o(e,t){for(var n=[t[e].parent,e],i=r[t[e].parent][e],o=t[e].parent;t[o].parent;)n.unshift(t[o].parent),i=a(r[t[o].parent][o],i),o=t[o].parent;return i.conversion=n,i}e.exports=function(e){for(var t=i(e),n={},r=Object.keys(t),a=r.length,s=0;s<a;s++){var l=r[s];null!==t[l].parent&&(n[l]=o(l,t))}return n}},874:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},818:(e,t,n)=>{var r=n(874),i=n(851),a=Object.hasOwnProperty,o=Object.create(null);for(var s in r)a.call(r,s)&&(o[r[s]]=s);var l=e.exports={to:{},get:{}};function c(e,t,n){return Math.min(Math.max(t,e),n)}function h(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,i,o=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=t[2],t=t[1],n=0;n<3;n++){var s=2*n;o[n]=parseInt(t.slice(s,s+2),16)}i&&(o[3]=parseInt(i,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(i=(t=t[1])[3],n=0;n<3;n++)o[n]=parseInt(t[n]+t[n],16);i&&(o[3]=parseInt(i+i,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)o[n]=parseInt(t[n+1],0);t[4]&&(t[5]?o[3]=.01*parseFloat(t[4]):o[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:a.call(r,t[1])?((o=r[t[1]])[3]=1,o):null:null;for(n=0;n<3;n++)o[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?o[3]=.01*parseFloat(t[4]):o[3]=parseFloat(t[4]))}for(n=0;n<3;n++)o[n]=c(o[n],0,255);return o[3]=c(o[3],0,1),o},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var e=i(arguments);return"#"+h(e[0])+h(e[1])+h(e[2])+(e[3]<1?h(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=i(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=i(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=i(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=i(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return o[e.slice(0,3)]}},767:(e,t,n)=>{"use strict";var r=n(818),i=n(85),a=[].slice,o=["keyword","gray","hex"],s={};Object.keys(i).forEach((function(e){s[a.call(i[e].labels).sort().join("")]=e}));var l={};function c(e,t){if(!(this instanceof c))return new c(e,t);if(t&&t in o&&(t=null),t&&!(t in i))throw new Error("Unknown model: "+t);var n,h;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof c)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var u=r.get(e);if(null===u)throw new Error("Unable to parse color from string: "+e);this.model=u.model,h=i[this.model].channels,this.color=u.value.slice(0,h),this.valpha="number"==typeof u.value[h]?u.value[h]:1}else if(e.length){this.model=t||"rgb",h=i[this.model].channels;var d=a.call(e,0,h);this.color=f(d,h),this.valpha="number"==typeof e[h]?e[h]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var p=Object.keys(e);"alpha"in e&&(p.splice(p.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var g=p.sort().join("");if(!(g in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[g];var m=i[this.model].labels,b=[];for(n=0;n<m.length;n++)b.push(e[m[n]]);this.color=f(b)}if(l[this.model])for(h=i[this.model].channels,n=0;n<h;n++){var v=l[this.model][n];v&&(this.color[n]=v(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function h(e,t,n){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(l[e]||(l[e]=[]))[t]=n})),e=e[0],function(r){var i;return arguments.length?(n&&(r=n(r)),(i=this[e]()).color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function u(e){return function(t){return Math.max(0,Math.min(e,t))}}function d(e){return Array.isArray(e)?e:[e]}function f(e,t){for(var n=0;n<t;n++)"number"!=typeof e[n]&&(e[n]=0);return e}c.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in r.to?this:this.rgb(),n=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:t.color.concat(this.valpha);return r.to[t.model](n)},percentString:function(e){var t=this.rgb().round("number"==typeof e?e:1),n=1===t.valpha?t.color:t.color.concat(this.valpha);return r.to.rgb.percent(n)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=i[this.model].channels,n=i[this.model].labels,r=0;r<t;r++)e[n[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new c(this.color.map(function(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new c(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:h("rgb",0,u(255)),green:h("rgb",1,u(255)),blue:h("rgb",2,u(255)),hue:h(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:h("hsl",1,u(100)),lightness:h("hsl",2,u(100)),saturationv:h("hsv",1,u(100)),value:h("hsv",2,u(100)),chroma:h("hcg",1,u(100)),gray:h("hcg",2,u(100)),white:h("hwb",1,u(100)),wblack:h("hwb",2,u(100)),cyan:h("cmyk",0,u(100)),magenta:h("cmyk",1,u(100)),yellow:h("cmyk",2,u(100)),black:h("cmyk",3,u(100)),x:h("xyz",0,u(100)),y:h("xyz",1,u(100)),z:h("xyz",2,u(100)),l:h("lab",0,u(100)),a:h("lab",1),b:h("lab",2),keyword:function(e){return arguments.length?new c(e):i[this.model].keyword(this.color)},hex:function(e){return arguments.length?new c(e):r.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return c.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var n=e.rgb(),r=this.rgb(),i=void 0===t?.5:t,a=2*i-1,o=n.alpha()-r.alpha(),s=((a*o==-1?a:(a+o)/(1+a*o))+1)/2,l=1-s;return c.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}},Object.keys(i).forEach((function(e){if(-1===o.indexOf(e)){var t=i[e].channels;c.prototype[e]=function(){if(this.model===e)return new c(this);if(arguments.length)return new c(arguments,e);var n="number"==typeof arguments[t]?t:this.valpha;return new c(d(i[this.model][e].raw(this.color)).concat(n),e)},c[e]=function(n){return"number"==typeof n&&(n=f(a.call(arguments),t)),new c(n,e)}}})),e.exports=c},392:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(81),i=n.n(r),a=n(645),o=n.n(a),s=n(667),l=n.n(s),c=new URL(n(181),n.b),h=new URL(n(135),n.b),u=new URL(n(136),n.b),d=new URL(n(609),n.b),f=new URL(n(157),n.b),p=o()(i()),g=l()(c),m=l()(h),b=l()(u),v=l()(d),y=l()(f);p.push([e.id,'table.dataTable th.dt-left,\ntable.dataTable td.dt-left {\n  text-align: left;\n}\ntable.dataTable th.dt-center,\ntable.dataTable td.dt-center,\ntable.dataTable td.dataTables_empty {\n  text-align: center;\n}\ntable.dataTable th.dt-right,\ntable.dataTable td.dt-right {\n  text-align: right;\n}\ntable.dataTable th.dt-justify,\ntable.dataTable td.dt-justify {\n  text-align: justify;\n}\ntable.dataTable th.dt-nowrap,\ntable.dataTable td.dt-nowrap {\n  white-space: nowrap;\n}\ntable.dataTable thead th.dt-head-left,\ntable.dataTable thead td.dt-head-left,\ntable.dataTable tfoot th.dt-head-left,\ntable.dataTable tfoot td.dt-head-left {\n  text-align: left;\n}\ntable.dataTable thead th.dt-head-center,\ntable.dataTable thead td.dt-head-center,\ntable.dataTable tfoot th.dt-head-center,\ntable.dataTable tfoot td.dt-head-center {\n  text-align: center;\n}\ntable.dataTable thead th.dt-head-right,\ntable.dataTable thead td.dt-head-right,\ntable.dataTable tfoot th.dt-head-right,\ntable.dataTable tfoot td.dt-head-right {\n  text-align: right;\n}\ntable.dataTable thead th.dt-head-justify,\ntable.dataTable thead td.dt-head-justify,\ntable.dataTable tfoot th.dt-head-justify,\ntable.dataTable tfoot td.dt-head-justify {\n  text-align: justify;\n}\ntable.dataTable thead th.dt-head-nowrap,\ntable.dataTable thead td.dt-head-nowrap,\ntable.dataTable tfoot th.dt-head-nowrap,\ntable.dataTable tfoot td.dt-head-nowrap {\n  white-space: nowrap;\n}\ntable.dataTable tbody th.dt-body-left,\ntable.dataTable tbody td.dt-body-left {\n  text-align: left;\n}\ntable.dataTable tbody th.dt-body-center,\ntable.dataTable tbody td.dt-body-center {\n  text-align: center;\n}\ntable.dataTable tbody th.dt-body-right,\ntable.dataTable tbody td.dt-body-right {\n  text-align: right;\n}\ntable.dataTable tbody th.dt-body-justify,\ntable.dataTable tbody td.dt-body-justify {\n  text-align: justify;\n}\ntable.dataTable tbody th.dt-body-nowrap,\ntable.dataTable tbody td.dt-body-nowrap {\n  white-space: nowrap;\n}\ntable.dataTable td.dt-control {\n  text-align: center;\n  cursor: pointer;\n}\ntable.dataTable td.dt-control:before {\n  height: 1em;\n  width: 1em;\n  margin-top: -9px;\n  display: inline-block;\n  color: white;\n  border: 0.15em solid white;\n  border-radius: 1em;\n  box-shadow: 0 0 0.2em #444;\n  box-sizing: content-box;\n  text-align: center;\n  text-indent: 0 !important;\n  font-family: "Courier New", Courier, monospace;\n  line-height: 1em;\n  content: "+";\n  background-color: #31b131;\n}\ntable.dataTable tr.dt-hasChild td.dt-control:before {\n  content: "-";\n  background-color: #d33333;\n}\n\n/*\n * Table styles\n */\ntable.dataTable {\n  width: 100%;\n  margin: 0 auto;\n  clear: both;\n  border-collapse: separate;\n  border-spacing: 0;\n  /*\n   * Header and footer styles\n   */\n  /*\n   * Body styles\n   */\n}\ntable.dataTable thead th,\ntable.dataTable tfoot th {\n  font-weight: bold;\n}\ntable.dataTable thead th,\ntable.dataTable thead td {\n  padding: 10px 18px;\n  border-bottom: 1px solid #111;\n}\ntable.dataTable thead th:active,\ntable.dataTable thead td:active {\n  outline: none;\n}\ntable.dataTable tfoot th,\ntable.dataTable tfoot td {\n  padding: 10px 18px 6px 18px;\n  border-top: 1px solid #111;\n}\ntable.dataTable thead .sorting,\ntable.dataTable thead .sorting_asc,\ntable.dataTable thead .sorting_desc,\ntable.dataTable thead .sorting_asc_disabled,\ntable.dataTable thead .sorting_desc_disabled {\n  cursor: pointer;\n  *cursor: hand;\n  background-repeat: no-repeat;\n  background-position: center right;\n}\ntable.dataTable thead .sorting {\n  background-image: url('+g+");\n}\ntable.dataTable thead .sorting_asc {\n  background-image: url("+m+") !important;\n}\ntable.dataTable thead .sorting_desc {\n  background-image: url("+b+") !important;\n}\ntable.dataTable thead .sorting_asc_disabled {\n  background-image: url("+v+");\n}\ntable.dataTable thead .sorting_desc_disabled {\n  background-image: url("+y+');\n}\ntable.dataTable tbody tr {\n  background-color: #ffffff;\n}\ntable.dataTable tbody tr.selected {\n  background-color: #B0BED9;\n}\ntable.dataTable tbody th,\ntable.dataTable tbody td {\n  padding: 8px 10px;\n}\ntable.dataTable.row-border tbody th, table.dataTable.row-border tbody td, table.dataTable.display tbody th, table.dataTable.display tbody td {\n  border-top: 1px solid #ddd;\n}\ntable.dataTable.row-border tbody tr:first-child th,\ntable.dataTable.row-border tbody tr:first-child td, table.dataTable.display tbody tr:first-child th,\ntable.dataTable.display tbody tr:first-child td {\n  border-top: none;\n}\ntable.dataTable.cell-border tbody th, table.dataTable.cell-border tbody td {\n  border-top: 1px solid #ddd;\n  border-right: 1px solid #ddd;\n}\ntable.dataTable.cell-border tbody tr th:first-child,\ntable.dataTable.cell-border tbody tr td:first-child {\n  border-left: 1px solid #ddd;\n}\ntable.dataTable.cell-border tbody tr:first-child th,\ntable.dataTable.cell-border tbody tr:first-child td {\n  border-top: none;\n}\ntable.dataTable.stripe tbody tr.odd, table.dataTable.display tbody tr.odd {\n  background-color: #f9f9f9;\n}\ntable.dataTable.stripe tbody tr.odd.selected, table.dataTable.display tbody tr.odd.selected {\n  background-color: #acbad4;\n}\ntable.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover {\n  background-color: #f6f6f6;\n}\ntable.dataTable.hover tbody tr:hover.selected, table.dataTable.display tbody tr:hover.selected {\n  background-color: #aab7d1;\n}\ntable.dataTable.order-column tbody tr > .sorting_1,\ntable.dataTable.order-column tbody tr > .sorting_2,\ntable.dataTable.order-column tbody tr > .sorting_3, table.dataTable.display tbody tr > .sorting_1,\ntable.dataTable.display tbody tr > .sorting_2,\ntable.dataTable.display tbody tr > .sorting_3 {\n  background-color: #fafafa;\n}\ntable.dataTable.order-column tbody tr.selected > .sorting_1,\ntable.dataTable.order-column tbody tr.selected > .sorting_2,\ntable.dataTable.order-column tbody tr.selected > .sorting_3, table.dataTable.display tbody tr.selected > .sorting_1,\ntable.dataTable.display tbody tr.selected > .sorting_2,\ntable.dataTable.display tbody tr.selected > .sorting_3 {\n  background-color: #acbad5;\n}\ntable.dataTable.display tbody tr.odd > .sorting_1, table.dataTable.order-column.stripe tbody tr.odd > .sorting_1 {\n  background-color: #f1f1f1;\n}\ntable.dataTable.display tbody tr.odd > .sorting_2, table.dataTable.order-column.stripe tbody tr.odd > .sorting_2 {\n  background-color: #f3f3f3;\n}\ntable.dataTable.display tbody tr.odd > .sorting_3, table.dataTable.order-column.stripe tbody tr.odd > .sorting_3 {\n  background-color: whitesmoke;\n}\ntable.dataTable.display tbody tr.odd.selected > .sorting_1, table.dataTable.order-column.stripe tbody tr.odd.selected > .sorting_1 {\n  background-color: #a6b4cd;\n}\ntable.dataTable.display tbody tr.odd.selected > .sorting_2, table.dataTable.order-column.stripe tbody tr.odd.selected > .sorting_2 {\n  background-color: #a8b5cf;\n}\ntable.dataTable.display tbody tr.odd.selected > .sorting_3, table.dataTable.order-column.stripe tbody tr.odd.selected > .sorting_3 {\n  background-color: #a9b7d1;\n}\ntable.dataTable.display tbody tr.even > .sorting_1, table.dataTable.order-column.stripe tbody tr.even > .sorting_1 {\n  background-color: #fafafa;\n}\ntable.dataTable.display tbody tr.even > .sorting_2, table.dataTable.order-column.stripe tbody tr.even > .sorting_2 {\n  background-color: #fcfcfc;\n}\ntable.dataTable.display tbody tr.even > .sorting_3, table.dataTable.order-column.stripe tbody tr.even > .sorting_3 {\n  background-color: #fefefe;\n}\ntable.dataTable.display tbody tr.even.selected > .sorting_1, table.dataTable.order-column.stripe tbody tr.even.selected > .sorting_1 {\n  background-color: #acbad5;\n}\ntable.dataTable.display tbody tr.even.selected > .sorting_2, table.dataTable.order-column.stripe tbody tr.even.selected > .sorting_2 {\n  background-color: #aebcd6;\n}\ntable.dataTable.display tbody tr.even.selected > .sorting_3, table.dataTable.order-column.stripe tbody tr.even.selected > .sorting_3 {\n  background-color: #afbdd8;\n}\ntable.dataTable.display tbody tr:hover > .sorting_1, table.dataTable.order-column.hover tbody tr:hover > .sorting_1 {\n  background-color: #eaeaea;\n}\ntable.dataTable.display tbody tr:hover > .sorting_2, table.dataTable.order-column.hover tbody tr:hover > .sorting_2 {\n  background-color: #ececec;\n}\ntable.dataTable.display tbody tr:hover > .sorting_3, table.dataTable.order-column.hover tbody tr:hover > .sorting_3 {\n  background-color: #efefef;\n}\ntable.dataTable.display tbody tr:hover.selected > .sorting_1, table.dataTable.order-column.hover tbody tr:hover.selected > .sorting_1 {\n  background-color: #a2aec7;\n}\ntable.dataTable.display tbody tr:hover.selected > .sorting_2, table.dataTable.order-column.hover tbody tr:hover.selected > .sorting_2 {\n  background-color: #a3b0c9;\n}\ntable.dataTable.display tbody tr:hover.selected > .sorting_3, table.dataTable.order-column.hover tbody tr:hover.selected > .sorting_3 {\n  background-color: #a5b2cb;\n}\ntable.dataTable.no-footer {\n  border-bottom: 1px solid #111;\n}\ntable.dataTable.nowrap th, table.dataTable.nowrap td {\n  white-space: nowrap;\n}\ntable.dataTable.compact thead th,\ntable.dataTable.compact thead td {\n  padding: 4px 17px;\n}\ntable.dataTable.compact tfoot th,\ntable.dataTable.compact tfoot td {\n  padding: 4px;\n}\ntable.dataTable.compact tbody th,\ntable.dataTable.compact tbody td {\n  padding: 4px;\n}\n\ntable.dataTable th,\ntable.dataTable td {\n  box-sizing: content-box;\n}\n\n/*\n * Control feature layout\n */\n.dataTables_wrapper {\n  position: relative;\n  clear: both;\n}\n.dataTables_wrapper .dataTables_length {\n  float: left;\n}\n.dataTables_wrapper .dataTables_length select {\n  border: 1px solid #aaa;\n  border-radius: 3px;\n  padding: 5px;\n  background-color: transparent;\n  padding: 4px;\n}\n.dataTables_wrapper .dataTables_filter {\n  float: right;\n  text-align: right;\n}\n.dataTables_wrapper .dataTables_filter input {\n  border: 1px solid #aaa;\n  border-radius: 3px;\n  padding: 5px;\n  background-color: transparent;\n  margin-left: 3px;\n}\n.dataTables_wrapper .dataTables_info {\n  clear: both;\n  float: left;\n  padding-top: 0.755em;\n}\n.dataTables_wrapper .dataTables_paginate {\n  float: right;\n  text-align: right;\n  padding-top: 0.25em;\n}\n.dataTables_wrapper .dataTables_paginate .paginate_button {\n  box-sizing: border-box;\n  display: inline-block;\n  min-width: 1.5em;\n  padding: 0.5em 1em;\n  margin-left: 2px;\n  text-align: center;\n  text-decoration: none !important;\n  cursor: pointer;\n  *cursor: hand;\n  color: #333 !important;\n  border: 1px solid transparent;\n  border-radius: 2px;\n}\n.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {\n  color: #333 !important;\n  border: 1px solid #979797;\n  background-color: white;\n  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, white), color-stop(100%, #dcdcdc));\n  /* Chrome,Safari4+ */\n  background: -webkit-linear-gradient(top, white 0%, #dcdcdc 100%);\n  /* Chrome10+,Safari5.1+ */\n  background: -moz-linear-gradient(top, white 0%, #dcdcdc 100%);\n  /* FF3.6+ */\n  background: -ms-linear-gradient(top, white 0%, #dcdcdc 100%);\n  /* IE10+ */\n  background: -o-linear-gradient(top, white 0%, #dcdcdc 100%);\n  /* Opera 11.10+ */\n  background: linear-gradient(to bottom, white 0%, #dcdcdc 100%);\n  /* W3C */\n}\n.dataTables_wrapper .dataTables_paginate .paginate_button.disabled, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {\n  cursor: default;\n  color: #666 !important;\n  border: 1px solid transparent;\n  background: transparent;\n  box-shadow: none;\n}\n.dataTables_wrapper .dataTables_paginate .paginate_button:hover {\n  color: white !important;\n  border: 1px solid #111;\n  background-color: #585858;\n  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #585858), color-stop(100%, #111));\n  /* Chrome,Safari4+ */\n  background: -webkit-linear-gradient(top, #585858 0%, #111 100%);\n  /* Chrome10+,Safari5.1+ */\n  background: -moz-linear-gradient(top, #585858 0%, #111 100%);\n  /* FF3.6+ */\n  background: -ms-linear-gradient(top, #585858 0%, #111 100%);\n  /* IE10+ */\n  background: -o-linear-gradient(top, #585858 0%, #111 100%);\n  /* Opera 11.10+ */\n  background: linear-gradient(to bottom, #585858 0%, #111 100%);\n  /* W3C */\n}\n.dataTables_wrapper .dataTables_paginate .paginate_button:active {\n  outline: none;\n  background-color: #2b2b2b;\n  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #2b2b2b), color-stop(100%, #0c0c0c));\n  /* Chrome,Safari4+ */\n  background: -webkit-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);\n  /* Chrome10+,Safari5.1+ */\n  background: -moz-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);\n  /* FF3.6+ */\n  background: -ms-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);\n  /* IE10+ */\n  background: -o-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);\n  /* Opera 11.10+ */\n  background: linear-gradient(to bottom, #2b2b2b 0%, #0c0c0c 100%);\n  /* W3C */\n  box-shadow: inset 0 0 3px #111;\n}\n.dataTables_wrapper .dataTables_paginate .ellipsis {\n  padding: 0 1em;\n}\n.dataTables_wrapper .dataTables_processing {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  width: 100%;\n  height: 40px;\n  margin-left: -50%;\n  margin-top: -25px;\n  padding-top: 20px;\n  text-align: center;\n  font-size: 1.2em;\n  background-color: white;\n  background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(25%, rgba(255, 255, 255, 0.9)), color-stop(75%, rgba(255, 255, 255, 0.9)), color-stop(100%, rgba(255, 255, 255, 0)));\n  background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);\n  background: -moz-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);\n  background: -ms-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);\n  background: -o-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);\n  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);\n}\n.dataTables_wrapper .dataTables_length,\n.dataTables_wrapper .dataTables_filter,\n.dataTables_wrapper .dataTables_info,\n.dataTables_wrapper .dataTables_processing,\n.dataTables_wrapper .dataTables_paginate {\n  color: #333;\n}\n.dataTables_wrapper .dataTables_scroll {\n  clear: both;\n}\n.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody {\n  *margin-top: -1px;\n  -webkit-overflow-scrolling: touch;\n}\n.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody > table > thead > tr > th, .dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody > table > thead > tr > td, .dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody > table > tbody > tr > th, .dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody > table > tbody > tr > td {\n  vertical-align: middle;\n}\n.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody > table > thead > tr > th > div.dataTables_sizing,\n.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody > table > thead > tr > td > div.dataTables_sizing, .dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody > table > tbody > tr > th > div.dataTables_sizing,\n.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody > table > tbody > tr > td > div.dataTables_sizing {\n  height: 0;\n  overflow: hidden;\n  margin: 0 !important;\n  padding: 0 !important;\n}\n.dataTables_wrapper.no-footer .dataTables_scrollBody {\n  border-bottom: 1px solid #111;\n}\n.dataTables_wrapper.no-footer div.dataTables_scrollHead table.dataTable,\n.dataTables_wrapper.no-footer div.dataTables_scrollBody > table {\n  border-bottom: none;\n}\n.dataTables_wrapper:after {\n  visibility: hidden;\n  display: block;\n  content: "";\n  clear: both;\n  height: 0;\n}\n\n@media screen and (max-width: 767px) {\n  .dataTables_wrapper .dataTables_info,\n.dataTables_wrapper .dataTables_paginate {\n    float: none;\n    text-align: center;\n  }\n  .dataTables_wrapper .dataTables_paginate {\n    margin-top: 0.5em;\n  }\n}\n@media screen and (max-width: 640px) {\n  .dataTables_wrapper .dataTables_length,\n.dataTables_wrapper .dataTables_filter {\n    float: none;\n    text-align: center;\n  }\n  .dataTables_wrapper .dataTables_filter {\n    margin-top: 0.5em;\n  }\n}\n',""]);const x=p},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,a){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(o[l]=!0)}for(var c=0;c<e.length;c++){var h=[].concat(e[c]);r&&o[h[0]]||(void 0!==a&&(void 0===h[5]||(h[1]="@layer".concat(h[5].length>0?" ".concat(h[5]):""," {").concat(h[1],"}")),h[5]=a),n&&(h[2]?(h[1]="@media ".concat(h[2]," {").concat(h[1],"}"),h[2]=n):h[2]=n),i&&(h[4]?(h[1]="@supports (".concat(h[4],") {").concat(h[1],"}"),h[4]=i):h[4]="".concat(i)),t.push(h))}},t}},667:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},81:e=>{"use strict";e.exports=function(e){return e[1]}},290:(e,t,n)=>{var r,i;r=[n(755),n(920)],void 0===(i=function(e){return function(e,t,n,r){return e.fn.dataTable}(e,window,document)}.apply(t,r))||(e.exports=i)},920:(e,t,n)=>{var r,i;!function(a){"use strict";r=[n(755)],i=function(e){return function(e,t,n,r){var i,a,o,s,l=function(t,n){if(this instanceof l)return e(t).DataTable(n);n=t,this.$=function(e,t){return this.api(!0).$(e,t)},this._=function(e,t){return this.api(!0).rows(e,t).data()},this.api=function(e){return new a(e?ft(this[i.iApiIndex]):this)},this.fnAddData=function(t,n){var i=this.api(!0),a=Array.isArray(t)&&(Array.isArray(t[0])||e.isPlainObject(t[0]))?i.rows.add(t):i.row.add(t);return(n===r||n)&&i.draw(),a.flatten().toArray()},this.fnAdjustColumnSizing=function(e){var t=this.api(!0).columns.adjust(),n=t.settings()[0],i=n.oScroll;e===r||e?t.draw(!1):""===i.sX&&""===i.sY||$e(n)},this.fnClearTable=function(e){var t=this.api(!0).clear();(e===r||e)&&t.draw()},this.fnClose=function(e){this.api(!0).row(e).child.hide()},this.fnDeleteRow=function(e,t,n){var i=this.api(!0),a=i.rows(e),o=a.settings()[0],s=o.aoData[a[0][0]];return a.remove(),t&&t.call(this,o,s),(n===r||n)&&i.draw(),s},this.fnDestroy=function(e){this.api(!0).destroy(e)},this.fnDraw=function(e){this.api(!0).draw(e)},this.fnFilter=function(e,t,n,i,a,o){var s=this.api(!0);null===t||t===r?s.search(e,n,i,o):s.column(t).search(e,n,i,o),s.draw()},this.fnGetData=function(e,t){var n=this.api(!0);if(e!==r){var i=e.nodeName?e.nodeName.toLowerCase():"";return t!==r||"td"==i||"th"==i?n.cell(e,t).data():n.row(e).data()||null}return n.data().toArray()},this.fnGetNodes=function(e){var t=this.api(!0);return e!==r?t.row(e).node():t.rows().nodes().flatten().toArray()},this.fnGetPosition=function(e){var t=this.api(!0),n=e.nodeName.toUpperCase();if("TR"==n)return t.row(e).index();if("TD"==n||"TH"==n){var r=t.cell(e).index();return[r.row,r.columnVisible,r.column]}return null},this.fnIsOpen=function(e){return this.api(!0).row(e).child.isShown()},this.fnOpen=function(e,t,n){return this.api(!0).row(e).child(t,n).show().child()[0]},this.fnPageChange=function(e,t){var n=this.api(!0).page(e);(t===r||t)&&n.draw(!1)},this.fnSetColumnVis=function(e,t,n){var i=this.api(!0).column(e).visible(t);(n===r||n)&&i.columns.adjust().draw()},this.fnSettings=function(){return ft(this[i.iApiIndex])},this.fnSort=function(e){this.api(!0).order(e).draw()},this.fnSortListener=function(e,t,n){this.api(!0).order.listener(e,t,n)},this.fnUpdate=function(e,t,n,i,a){var o=this.api(!0);return n===r||null===n?o.row(t).data(e):o.cell(t,n).data(e),(a===r||a)&&o.columns.adjust(),(i===r||i)&&o.draw(),0},this.fnVersionCheck=i.fnVersionCheck;var o=this,s=n===r,c=this.length;for(var h in s&&(n={}),this.oApi=this.internal=i.internal,l.ext.internal)h&&(this[h]=Kt(h));return this.each((function(){var t,i=c>1?mt({},n,!0):n,a=0,h=this.getAttribute("id"),u=!1,d=l.defaults,f=e(this);if("table"==this.nodeName.toLowerCase()){I(d),j(d.column),R(d,d,!0),R(d.column,d.column,!0),R(d,e.extend(i,f.data()),!0);var p=l.settings;for(a=0,t=p.length;a<t;a++){var g=p[a];if(g.nTable==this||g.nTHead&&g.nTHead.parentNode==this||g.nTFoot&&g.nTFoot.parentNode==this){var m=i.bRetrieve!==r?i.bRetrieve:d.bRetrieve,b=i.bDestroy!==r?i.bDestroy:d.bDestroy;if(s||m)return g.oInstance;if(b){g.oInstance.fnDestroy();break}return void pt(g,0,"Cannot reinitialise DataTable",3)}if(g.sTableId==this.id){p.splice(a,1);break}}null!==h&&""!==h||(h="DataTables_Table_"+l.ext._unique++,this.id=h);var v=e.extend(!0,{},l.models.oSettings,{sDestroyWidth:f[0].style.width,sInstance:h,sTableId:h});v.nTable=this,v.oApi=o.internal,v.oInit=i,p.push(v),v.oInstance=1===o.length?o:f.dataTable(),I(i),P(i.oLanguage),i.aLengthMenu&&!i.iDisplayLength&&(i.iDisplayLength=Array.isArray(i.aLengthMenu[0])?i.aLengthMenu[0][0]:i.aLengthMenu[0]),i=mt(e.extend(!0,{},d),i),gt(v.oFeatures,i,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),gt(v,i,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),gt(v.oScroll,i,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),gt(v.oLanguage,i,"fnInfoCallback"),vt(v,"aoDrawCallback",i.fnDrawCallback,"user"),vt(v,"aoServerParams",i.fnServerParams,"user"),vt(v,"aoStateSaveParams",i.fnStateSaveParams,"user"),vt(v,"aoStateLoadParams",i.fnStateLoadParams,"user"),vt(v,"aoStateLoaded",i.fnStateLoaded,"user"),vt(v,"aoRowCallback",i.fnRowCallback,"user"),vt(v,"aoRowCreatedCallback",i.fnCreatedRow,"user"),vt(v,"aoHeaderCallback",i.fnHeaderCallback,"user"),vt(v,"aoFooterCallback",i.fnFooterCallback,"user"),vt(v,"aoInitComplete",i.fnInitComplete,"user"),vt(v,"aoPreDrawCallback",i.fnPreDrawCallback,"user"),v.rowIdFn=ne(i.rowId),F(v);var y=v.oClasses;if(e.extend(y,l.ext.classes,i.oClasses),f.addClass(y.sTable),v.iInitDisplayStart===r&&(v.iInitDisplayStart=i.iDisplayStart,v._iDisplayStart=i.iDisplayStart),null!==i.iDeferLoading){v.bDeferLoading=!0;var x=Array.isArray(i.iDeferLoading);v._iRecordsDisplay=x?i.iDeferLoading[0]:i.iDeferLoading,v._iRecordsTotal=x?i.iDeferLoading[1]:i.iDeferLoading}var w=v.oLanguage;e.extend(!0,w,i.oLanguage),w.sUrl?(e.ajax({dataType:"json",url:w.sUrl,success:function(t){R(d.oLanguage,t),P(t),e.extend(!0,w,t),yt(v,null,"i18n",[v]),Oe(v)},error:function(){Oe(v)}}),u=!0):yt(v,null,"i18n",[v]),null===i.asStripeClasses&&(v.asStripeClasses=[y.sStripeOdd,y.sStripeEven]);var T=v.asStripeClasses,S=f.children("tbody").find("tr").eq(0);-1!==e.inArray(!0,e.map(T,(function(e,t){return S.hasClass(e)})))&&(e("tbody tr",this).removeClass(T.join(" ")),v.asDestroyStripes=T.slice());var C,E=[],D=this.getElementsByTagName("thead");if(0!==D.length&&(me(v.aoHeader,D[0]),E=be(v)),null===i.aoColumns)for(C=[],a=0,t=E.length;a<t;a++)C.push(null);else C=i.aoColumns;for(a=0,t=C.length;a<t;a++)H(v,E?E[a]:null);if(X(v,i.aoColumnDefs,C,(function(e,t){O(v,e,t)})),S.length){var _=function(e,t){return null!==e.getAttribute("data-"+t)?t:null};e(S[0]).children("th, td").each((function(e,t){var n=v.aoColumns[e];if(n.mData===e){var i=_(t,"sort")||_(t,"order"),a=_(t,"filter")||_(t,"search");null===i&&null===a||(n.mData={_:e+".display",sort:null!==i?e+".@data-"+i:r,type:null!==i?e+".@data-"+i:r,filter:null!==a?e+".@data-"+a:r},O(v,e))}}))}var k=v.oFeatures,A=function(){if(i.aaSorting===r){var n=v.aaSorting;for(a=0,t=n.length;a<t;a++)n[a][1]=v.aoColumns[a].asSorting[0]}lt(v),k.bSort&&vt(v,"aoDrawCallback",(function(){if(v.bSorted){var t=rt(v),n={};e.each(t,(function(e,t){n[t.src]=t.dir})),yt(v,null,"order",[v,t,n]),at(v)}})),vt(v,"aoDrawCallback",(function(){(v.bSorted||"ssp"===Tt(v)||k.bDeferRender)&&lt(v)}),"sc");var o=f.children("caption").each((function(){this._captionSide=e(this).css("caption-side")})),s=f.children("thead");0===s.length&&(s=e("<thead/>").appendTo(f)),v.nTHead=s[0];var l=f.children("tbody");0===l.length&&(l=e("<tbody/>").insertAfter(s)),v.nTBody=l[0];var c=f.children("tfoot");if(0===c.length&&o.length>0&&(""!==v.oScroll.sX||""!==v.oScroll.sY)&&(c=e("<tfoot/>").appendTo(f)),0===c.length||0===c.children().length?f.addClass(y.sNoFooter):c.length>0&&(v.nTFoot=c[0],me(v.aoFooter,v.nTFoot)),i.aaData)for(a=0;a<i.aaData.length;a++)G(v,i.aaData[a]);else(v.bDeferLoading||"dom"==Tt(v))&&$(v,e(v.nTBody).children("tr"));v.aiDisplay=v.aiDisplayMaster.slice(),v.bInitialised=!0,!1===u&&Oe(v)};vt(v,"aoDrawCallback",ht,"state_save"),i.bStateSave?(k.bStateSave=!0,ut(v,i,A)):A()}else pt(null,0,"Non-table node initialisation ("+this.nodeName+")",2)})),o=null,this},c={},h=/[\r\n\u2028]/g,u=/<.*?>/g,d=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,f=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),p=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,g=function(e){return!e||!0===e||"-"===e},m=function(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null},b=function(e,t){return c[t]||(c[t]=new RegExp(Me(t),"g")),"string"==typeof e&&"."!==t?e.replace(/\./g,"").replace(c[t],"."):e},v=function(e,t,n){var r="string"==typeof e;return!!g(e)||(t&&r&&(e=b(e,t)),n&&r&&(e=e.replace(p,"")),!isNaN(parseFloat(e))&&isFinite(e))},y=function(e){return g(e)||"string"==typeof e},x=function(e,t,n){return!!g(e)||(y(e)&&!!v(E(e),t,n)||null)},w=function(e,t,n){var i=[],a=0,o=e.length;if(n!==r)for(;a<o;a++)e[a]&&e[a][t]&&i.push(e[a][t][n]);else for(;a<o;a++)e[a]&&i.push(e[a][t]);return i},T=function(e,t,n,i){var a=[],o=0,s=t.length;if(i!==r)for(;o<s;o++)e[t[o]][n]&&a.push(e[t[o]][n][i]);else for(;o<s;o++)a.push(e[t[o]][n]);return a},S=function(e,t){var n,i=[];t===r?(t=0,n=e):(n=t,t=e);for(var a=t;a<n;a++)i.push(a);return i},C=function(e){for(var t=[],n=0,r=e.length;n<r;n++)e[n]&&t.push(e[n]);return t},E=function(e){return e.replace(u,"")},D=function(e){if(e.length<2)return!0;for(var t=e.slice().sort(),n=t[0],r=1,i=t.length;r<i;r++){if(t[r]===n)return!1;n=t[r]}return!0},_=function(e){if(D(e))return e.slice();var t,n,r,i=[],a=e.length,o=0;e:for(n=0;n<a;n++){for(t=e[n],r=0;r<o;r++)if(i[r]===t)continue e;i.push(t),o++}return i},k=function(e,t){if(Array.isArray(t))for(var n=0;n<t.length;n++)k(e,t[n]);else e.push(t);return e},A=function(e,t){return t===r&&(t=0),-1!==this.indexOf(e,t)};Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});Array.prototype.includes||(Array.prototype.includes=A);String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")});String.prototype.includes||(String.prototype.includes=A);function M(t){var n,r,i="a aa ai ao as b fn i m o s ",a={};e.each(t,(function(e,o){(n=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!==i.indexOf(n[1]+" ")&&(r=e.replace(n[0],n[2].toLowerCase()),a[r]=e,"o"===n[1]&&M(t[e]))})),t._hungarianMap=a}function R(t,n,i){var a;t._hungarianMap||M(t),e.each(n,(function(o,s){(a=t._hungarianMap[o])===r||!i&&n[a]!==r||("o"===a.charAt(0)?(n[a]||(n[a]={}),e.extend(!0,n[a],n[o]),R(t[a],n[a],i)):n[a]=n[o])}))}function P(e){var t=l.defaults.oLanguage,n=t.sDecimal;if(n&&$t(n),e){var r=e.sZeroRecords;!e.sEmptyTable&&r&&"No data available in table"===t.sEmptyTable&&gt(e,e,"sZeroRecords","sEmptyTable"),!e.sLoadingRecords&&r&&"Loading..."===t.sLoadingRecords&&gt(e,e,"sZeroRecords","sLoadingRecords"),e.sInfoThousands&&(e.sThousands=e.sInfoThousands);var i=e.sDecimal;i&&n!==i&&$t(i)}}l.util={throttle:function(e,t){var n,i,a=t!==r?t:200;return function(){var t=this,o=+new Date,s=arguments;n&&o<n+a?(clearTimeout(i),i=setTimeout((function(){n=r,e.apply(t,s)}),a)):(n=o,e.apply(t,s))}},escapeRegex:function(e){return e.replace(f,"\\$1")},set:function(t){if(e.isPlainObject(t))return l.util.set(t._);if(null===t)return function(){};if("function"==typeof t)return function(e,n,r){t(e,"set",n,r)};if("string"!=typeof t||-1===t.indexOf(".")&&-1===t.indexOf("[")&&-1===t.indexOf("("))return function(e,n){e[t]=n};var n=function(e,t,i){for(var a,o,s,l,c,h=te(i),u=h[h.length-1],d=0,f=h.length-1;d<f;d++){if("__proto__"===h[d]||"constructor"===h[d])throw new Error("Cannot set prototype values");if(o=h[d].match(Q),s=h[d].match(ee),o){if(h[d]=h[d].replace(Q,""),e[h[d]]=[],(a=h.slice()).splice(0,d+1),c=a.join("."),Array.isArray(t))for(var p=0,g=t.length;p<g;p++)n(l={},t[p],c),e[h[d]].push(l);else e[h[d]]=t;return}s&&(h[d]=h[d].replace(ee,""),e=e[h[d]](t)),null!==e[h[d]]&&e[h[d]]!==r||(e[h[d]]={}),e=e[h[d]]}u.match(ee)?e=e[u.replace(ee,"")](t):e[u.replace(Q,"")]=t};return function(e,r){return n(e,r,t)}},get:function(t){if(e.isPlainObject(t)){var n={};return e.each(t,(function(e,t){t&&(n[e]=l.util.get(t))})),function(e,t,i,a){var o=n[t]||n._;return o!==r?o(e,t,i,a):e}}if(null===t)return function(e){return e};if("function"==typeof t)return function(e,n,r,i){return t(e,n,r,i)};if("string"!=typeof t||-1===t.indexOf(".")&&-1===t.indexOf("[")&&-1===t.indexOf("("))return function(e,n){return e[t]};var i=function(e,t,n){var a,o,s,l;if(""!==n)for(var c=te(n),h=0,u=c.length;h<u;h++){if(a=c[h].match(Q),o=c[h].match(ee),a){if(c[h]=c[h].replace(Q,""),""!==c[h]&&(e=e[c[h]]),s=[],c.splice(0,h+1),l=c.join("."),Array.isArray(e))for(var d=0,f=e.length;d<f;d++)s.push(i(e[d],t,l));var p=a[0].substring(1,a[0].length-1);e=""===p?s:s.join(p);break}if(o)c[h]=c[h].replace(ee,""),e=e[c[h]]();else{if(null===e||e[c[h]]===r)return r;e=e[c[h]]}}return e};return function(e,n){return i(e,n,t)}}};var L=function(e,t,n){e[t]!==r&&(e[n]=e[t])};function I(e){L(e,"ordering","bSort"),L(e,"orderMulti","bSortMulti"),L(e,"orderClasses","bSortClasses"),L(e,"orderCellsTop","bSortCellsTop"),L(e,"order","aaSorting"),L(e,"orderFixed","aaSortingFixed"),L(e,"paging","bPaginate"),L(e,"pagingType","sPaginationType"),L(e,"pageLength","iDisplayLength"),L(e,"searching","bFilter"),"boolean"==typeof e.sScrollX&&(e.sScrollX=e.sScrollX?"100%":""),"boolean"==typeof e.scrollX&&(e.scrollX=e.scrollX?"100%":"");var t=e.aoSearchCols;if(t)for(var n=0,r=t.length;n<r;n++)t[n]&&R(l.models.oSearch,t[n])}function j(e){L(e,"orderable","bSortable"),L(e,"orderData","aDataSort"),L(e,"orderSequence","asSorting"),L(e,"orderDataType","sortDataType");var t=e.aDataSort;"number"!=typeof t||Array.isArray(t)||(e.aDataSort=[t])}function F(n){if(!l.__browser){var r={};l.__browser=r;var i=e("<div/>").css({position:"fixed",top:0,left:-1*e(t).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(e("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(e("<div/>").css({width:"100%",height:10}))).appendTo("body"),a=i.children(),o=a.children();r.barWidth=a[0].offsetWidth-a[0].clientWidth,r.bScrollOversize=100===o[0].offsetWidth&&100!==a[0].clientWidth,r.bScrollbarLeft=1!==Math.round(o.offset().left),r.bBounding=!!i[0].getBoundingClientRect().width,i.remove()}e.extend(n.oBrowser,l.__browser),n.oScroll.iBarWidth=l.__browser.barWidth}function N(e,t,n,i,a,o){var s,l=i,c=!1;for(n!==r&&(s=n,c=!0);l!==a;)e.hasOwnProperty(l)&&(s=c?t(s,e[l],l,e):e[l],c=!0,l+=o);return s}function H(t,r){var i=l.defaults.column,a=t.aoColumns.length,o=e.extend({},l.models.oColumn,i,{nTh:r||n.createElement("th"),sTitle:i.sTitle?i.sTitle:r?r.innerHTML:"",aDataSort:i.aDataSort?i.aDataSort:[a],mData:i.mData?i.mData:a,idx:a});t.aoColumns.push(o);var s=t.aoPreSearchCols;s[a]=e.extend({},l.models.oSearch,s[a]),O(t,a,e(r).data())}function O(t,n,i){var a=t.aoColumns[n],o=t.oClasses,s=e(a.nTh);if(!a.sWidthOrig){a.sWidthOrig=s.attr("width")||null;var c=(s.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);c&&(a.sWidthOrig=c[1])}i!==r&&null!==i&&(j(i),R(l.defaults.column,i,!0),i.mDataProp===r||i.mData||(i.mData=i.mDataProp),i.sType&&(a._sManualType=i.sType),i.className&&!i.sClass&&(i.sClass=i.className),i.sClass&&s.addClass(i.sClass),e.extend(a,i),gt(a,i,"sWidth","sWidthOrig"),i.iDataSort!==r&&(a.aDataSort=[i.iDataSort]),gt(a,i,"aDataSort"));var h=a.mData,u=ne(h),d=a.mRender?ne(a.mRender):null,f=function(e){return"string"==typeof e&&-1!==e.indexOf("@")};a._bAttrSrc=e.isPlainObject(h)&&(f(h.sort)||f(h.type)||f(h.filter)),a._setter=null,a.fnGetData=function(e,t,n){var i=u(e,t,r,n);return d&&t?d(i,t,e,n):i},a.fnSetData=function(e,t,n){return re(h)(e,t,n)},"number"!=typeof h&&(t._rowReadObject=!0),t.oFeatures.bSort||(a.bSortable=!1,s.addClass(o.sSortableNone));var p=-1!==e.inArray("asc",a.asSorting),g=-1!==e.inArray("desc",a.asSorting);a.bSortable&&(p||g)?p&&!g?(a.sSortingClass=o.sSortableAsc,a.sSortingClassJUI=o.sSortJUIAscAllowed):!p&&g?(a.sSortingClass=o.sSortableDesc,a.sSortingClassJUI=o.sSortJUIDescAllowed):(a.sSortingClass=o.sSortable,a.sSortingClassJUI=o.sSortJUI):(a.sSortingClass=o.sSortableNone,a.sSortingClassJUI="")}function B(e){if(!1!==e.oFeatures.bAutoWidth){var t=e.aoColumns;Ze(e);for(var n=0,r=t.length;n<r;n++)t[n].nTh.style.width=t[n].sWidth}var i=e.oScroll;""===i.sY&&""===i.sX||$e(e),yt(e,null,"column-sizing",[e])}function q(e,t){var n=U(e,"bVisible");return"number"==typeof n[t]?n[t]:null}function W(t,n){var r=U(t,"bVisible"),i=e.inArray(n,r);return-1!==i?i:null}function z(t){var n=0;return e.each(t.aoColumns,(function(t,r){r.bVisible&&"none"!==e(r.nTh).css("display")&&n++})),n}function U(t,n){var r=[];return e.map(t.aoColumns,(function(e,t){e[n]&&r.push(t)})),r}function V(e){var t,n,i,a,o,s,c,h,u,d=e.aoColumns,f=e.aoData,p=l.ext.type.detect;for(t=0,n=d.length;t<n;t++)if(u=[],!(c=d[t]).sType&&c._sManualType)c.sType=c._sManualType;else if(!c.sType){for(i=0,a=p.length;i<a;i++){for(o=0,s=f.length;o<s&&(u[o]===r&&(u[o]=Z(e,o,t,"type")),(h=p[i](u[o],e))||i===p.length-1)&&("html"!==h||g(u[o]));o++);if(h){c.sType=h;break}}c.sType||(c.sType="string")}}function X(t,n,i,a){var o,s,l,c,h,u,d,f=t.aoColumns;if(n)for(o=n.length-1;o>=0;o--){var p=(d=n[o]).targets!==r?d.targets:d.aTargets;for(Array.isArray(p)||(p=[p]),l=0,c=p.length;l<c;l++)if("number"==typeof p[l]&&p[l]>=0){for(;f.length<=p[l];)H(t);a(p[l],d)}else if("number"==typeof p[l]&&p[l]<0)a(f.length+p[l],d);else if("string"==typeof p[l])for(h=0,u=f.length;h<u;h++)("_all"==p[l]||e(f[h].nTh).hasClass(p[l]))&&a(h,d)}if(i)for(o=0,s=i.length;o<s;o++)a(o,i[o])}function G(t,n,i,a){var o=t.aoData.length,s=e.extend(!0,{},l.models.oRow,{src:i?"dom":"data",idx:o});s._aData=n,t.aoData.push(s);for(var c=t.aoColumns,h=0,u=c.length;h<u;h++)c[h].sType=null;t.aiDisplayMaster.push(o);var d=t.rowIdFn(n);return d!==r&&(t.aIds[d]=s),!i&&t.oFeatures.bDeferRender||ce(t,o,i,a),o}function $(t,n){var r;return n instanceof e||(n=e(n)),n.map((function(e,n){return r=le(t,n),G(t,r.data,n,r.cells)}))}function Y(e,t){return t._DT_RowIndex!==r?t._DT_RowIndex:null}function K(t,n,r){return e.inArray(r,t.aoData[n].anCells)}function Z(e,t,n,i){"search"===i?i="filter":"order"===i&&(i="sort");var a=e.iDraw,o=e.aoColumns[n],s=e.aoData[t]._aData,c=o.sDefaultContent,h=o.fnGetData(s,i,{settings:e,row:t,col:n});if(h===r)return e.iDrawError!=a&&null===c&&(pt(e,0,"Requested unknown parameter "+("function"==typeof o.mData?"{function}":"'"+o.mData+"'")+" for row "+t+", column "+n,4),e.iDrawError=a),c;if(h!==s&&null!==h||null===c||i===r){if("function"==typeof h)return h.call(s)}else h=c;if(null===h&&"display"===i)return"";if("filter"===i){var u=l.ext.type.search;u[o.sType]&&(h=u[o.sType](h))}return h}function J(e,t,n,r){var i=e.aoColumns[n],a=e.aoData[t]._aData;i.fnSetData(a,r,{settings:e,row:t,col:n})}var Q=/\[.*?\]$/,ee=/\(\)$/;function te(t){return e.map(t.match(/(\\.|[^\.])+/g)||[""],(function(e){return e.replace(/\\\./g,".")}))}var ne=l.util.get,re=l.util.set;function ie(e){return w(e.aoData,"_aData")}function ae(e){e.aoData.length=0,e.aiDisplayMaster.length=0,e.aiDisplay.length=0,e.aIds={}}function oe(e,t,n){for(var i=-1,a=0,o=e.length;a<o;a++)e[a]==t?i=a:e[a]>t&&e[a]--;-1!=i&&n===r&&e.splice(i,1)}function se(e,t,n,i){var a,o,s=e.aoData[t],l=function(n,r){for(;n.childNodes.length;)n.removeChild(n.firstChild);n.innerHTML=Z(e,t,r,"display")};if("dom"!==n&&(n&&"auto"!==n||"dom"!==s.src)){var c=s.anCells;if(c)if(i!==r)l(c[i],i);else for(a=0,o=c.length;a<o;a++)l(c[a],a)}else s._aData=le(e,s,i,i===r?r:s._aData).data;s._aSortData=null,s._aFilterData=null;var h=e.aoColumns;if(i!==r)h[i].sType=null;else{for(a=0,o=h.length;a<o;a++)h[a].sType=null;he(e,s)}}function le(e,t,n,i){var a,o,s,l=[],c=t.firstChild,h=0,u=e.aoColumns,d=e._rowReadObject;i=i!==r?i:d?{}:[];var f=function(e,t){if("string"==typeof e){var n=e.indexOf("@");if(-1!==n){var r=e.substring(n+1);re(e)(i,t.getAttribute(r))}}},p=function(e){n!==r&&n!==h||(o=u[h],s=e.innerHTML.trim(),o&&o._bAttrSrc?(re(o.mData._)(i,s),f(o.mData.sort,e),f(o.mData.type,e),f(o.mData.filter,e)):d?(o._setter||(o._setter=re(o.mData)),o._setter(i,s)):i[h]=s);h++};if(c)for(;c;)"TD"!=(a=c.nodeName.toUpperCase())&&"TH"!=a||(p(c),l.push(c)),c=c.nextSibling;else for(var g=0,m=(l=t.anCells).length;g<m;g++)p(l[g]);var b=t.firstChild?t:t.nTr;if(b){var v=b.getAttribute("id");v&&re(e.rowId)(i,v)}return{data:i,cells:l}}function ce(t,r,i,a){var o,s,l,c,h,u,d=t.aoData[r],f=d._aData,p=[];if(null===d.nTr){for(o=i||n.createElement("tr"),d.nTr=o,d.anCells=p,o._DT_RowIndex=r,he(t,d),c=0,h=t.aoColumns.length;c<h;c++)l=t.aoColumns[c],(s=(u=!i)?n.createElement(l.sCellType):a[c])._DT_CellIndex={row:r,column:c},p.push(s),!u&&(!l.mRender&&l.mData===c||e.isPlainObject(l.mData)&&l.mData._===c+".display")||(s.innerHTML=Z(t,r,c,"display")),l.sClass&&(s.className+=" "+l.sClass),l.bVisible&&!i?o.appendChild(s):!l.bVisible&&i&&s.parentNode.removeChild(s),l.fnCreatedCell&&l.fnCreatedCell.call(t.oInstance,s,Z(t,r,c),f,r,c);yt(t,"aoRowCreatedCallback",null,[o,f,r,p])}}function he(t,n){var r=n.nTr,i=n._aData;if(r){var a=t.rowIdFn(i);if(a&&(r.id=a),i.DT_RowClass){var o=i.DT_RowClass.split(" ");n.__rowc=n.__rowc?_(n.__rowc.concat(o)):o,e(r).removeClass(n.__rowc.join(" ")).addClass(i.DT_RowClass)}i.DT_RowAttr&&e(r).attr(i.DT_RowAttr),i.DT_RowData&&e(r).data(i.DT_RowData)}}function ue(t){var n,r,i,a,o,s=t.nTHead,l=t.nTFoot,c=0===e("th, td",s).length,h=t.oClasses,u=t.aoColumns;for(c&&(a=e("<tr/>").appendTo(s)),n=0,r=u.length;n<r;n++)o=u[n],i=e(o.nTh).addClass(o.sClass),c&&i.appendTo(a),t.oFeatures.bSort&&(i.addClass(o.sSortingClass),!1!==o.bSortable&&(i.attr("tabindex",t.iTabIndex).attr("aria-controls",t.sTableId),st(t,o.nTh,n))),o.sTitle!=i[0].innerHTML&&i.html(o.sTitle),wt(t,"header")(t,i,o,h);if(c&&me(t.aoHeader,s),e(s).children("tr").children("th, td").addClass(h.sHeaderTH),e(l).children("tr").children("th, td").addClass(h.sFooterTH),null!==l){var d=t.aoFooter[0];for(n=0,r=d.length;n<r;n++)(o=u[n]).nTf=d[n].cell,o.sClass&&e(o.nTf).addClass(o.sClass)}}function de(t,n,i){var a,o,s,l,c,h,u,d,f,p=[],g=[],m=t.aoColumns.length;if(n){for(i===r&&(i=!1),a=0,o=n.length;a<o;a++){for(p[a]=n[a].slice(),p[a].nTr=n[a].nTr,s=m-1;s>=0;s--)t.aoColumns[s].bVisible||i||p[a].splice(s,1);g.push([])}for(a=0,o=p.length;a<o;a++){if(u=p[a].nTr)for(;h=u.firstChild;)u.removeChild(h);for(s=0,l=p[a].length;s<l;s++)if(d=1,f=1,g[a][s]===r){for(u.appendChild(p[a][s].cell),g[a][s]=1;p[a+d]!==r&&p[a][s].cell==p[a+d][s].cell;)g[a+d][s]=1,d++;for(;p[a][s+f]!==r&&p[a][s].cell==p[a][s+f].cell;){for(c=0;c<d;c++)g[a+c][s+f]=1;f++}e(p[a][s].cell).attr("rowspan",d).attr("colspan",f)}}}}function fe(t,n){ve(t);var r=yt(t,"aoPreDrawCallback","preDraw",[t]);if(-1===e.inArray(!1,r)){var i=[],a=0,o=t.asStripeClasses,s=o.length,l=t.oLanguage,c="ssp"==Tt(t),h=t.aiDisplay,u=t._iDisplayStart,d=t.fnDisplayEnd();if(t.bDrawing=!0,t.bDeferLoading)t.bDeferLoading=!1,t.iDraw++,Xe(t,!1);else if(c){if(!t.bDestroying&&!n)return void xe(t)}else t.iDraw++;if(0!==h.length)for(var f=c?0:u,p=c?t.aoData.length:d,g=f;g<p;g++){var m=h[g],b=t.aoData[m];null===b.nTr&&ce(t,m);var v=b.nTr;if(0!==s){var y=o[a%s];b._sRowStripe!=y&&(e(v).removeClass(b._sRowStripe).addClass(y),b._sRowStripe=y)}yt(t,"aoRowCallback",null,[v,b._aData,a,g,m]),i.push(v),a++}else{var x=l.sZeroRecords;1==t.iDraw&&"ajax"==Tt(t)?x=l.sLoadingRecords:l.sEmptyTable&&0===t.fnRecordsTotal()&&(x=l.sEmptyTable),i[0]=e("<tr/>",{class:s?o[0]:""}).append(e("<td />",{valign:"top",colSpan:z(t),class:t.oClasses.sRowEmpty}).html(x))[0]}yt(t,"aoHeaderCallback","header",[e(t.nTHead).children("tr")[0],ie(t),u,d,h]),yt(t,"aoFooterCallback","footer",[e(t.nTFoot).children("tr")[0],ie(t),u,d,h]);var w=e(t.nTBody);w.children().detach(),w.append(e(i)),yt(t,"aoDrawCallback","draw",[t]),t.bSorted=!1,t.bFiltered=!1,t.bDrawing=!1}else Xe(t,!1)}function pe(e,t){var n=e.oFeatures,r=n.bSort,i=n.bFilter;r&&it(e),i?Ee(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice(),!0!==t&&(e._iDisplayStart=0),e._drawHold=t,fe(e),e._drawHold=!1}function ge(t){var n=t.oClasses,r=e(t.nTable),i=e("<div/>").insertBefore(r),a=t.oFeatures,o=e("<div/>",{id:t.sTableId+"_wrapper",class:n.sWrapper+(t.nTFoot?"":" "+n.sNoFooter)});t.nHolding=i[0],t.nTableWrapper=o[0],t.nTableReinsertBefore=t.nTable.nextSibling;for(var s,c,h,u,d,f,p=t.sDom.split(""),g=0;g<p.length;g++){if(s=null,"<"==(c=p[g])){if(h=e("<div/>")[0],"'"==(u=p[g+1])||'"'==u){for(d="",f=2;p[g+f]!=u;)d+=p[g+f],f++;if("H"==d?d=n.sJUIHeader:"F"==d&&(d=n.sJUIFooter),-1!=d.indexOf(".")){var m=d.split(".");h.id=m[0].substr(1,m[0].length-1),h.className=m[1]}else"#"==d.charAt(0)?h.id=d.substr(1,d.length-1):h.className=d;g+=f}o.append(h),o=e(h)}else if(">"==c)o=o.parent();else if("l"==c&&a.bPaginate&&a.bLengthChange)s=We(t);else if("f"==c&&a.bFilter)s=Ce(t);else if("r"==c&&a.bProcessing)s=Ve(t);else if("t"==c)s=Ge(t);else if("i"==c&&a.bInfo)s=Fe(t);else if("p"==c&&a.bPaginate)s=ze(t);else if(0!==l.ext.feature.length)for(var b=l.ext.feature,v=0,y=b.length;v<y;v++)if(c==b[v].cFeature){s=b[v].fnInit(t);break}if(s){var x=t.aanFeatures;x[c]||(x[c]=[]),x[c].push(s),o.append(s)}}i.replaceWith(o),t.nHolding=null}function me(t,n){var r,i,a,o,s,l,c,h,u,d,f,p=e(n).children("tr"),g=function(e,t,n){for(var r=e[t];r[n];)n++;return n};for(t.splice(0,t.length),a=0,l=p.length;a<l;a++)t.push([]);for(a=0,l=p.length;a<l;a++)for(h=0,i=(r=p[a]).firstChild;i;){if("TD"==i.nodeName.toUpperCase()||"TH"==i.nodeName.toUpperCase())for(u=(u=1*i.getAttribute("colspan"))&&0!==u&&1!==u?u:1,d=(d=1*i.getAttribute("rowspan"))&&0!==d&&1!==d?d:1,c=g(t,a,h),f=1===u,s=0;s<u;s++)for(o=0;o<d;o++)t[a+o][c+s]={cell:i,unique:f},t[a+o].nTr=r;i=i.nextSibling}}function be(e,t,n){var r=[];n||(n=e.aoHeader,t&&me(n=[],t));for(var i=0,a=n.length;i<a;i++)for(var o=0,s=n[i].length;o<s;o++)!n[i][o].unique||r[o]&&e.bSortCellsTop||(r[o]=n[i][o].cell);return r}function ve(e){var t="ssp"==Tt(e),n=e.iInitDisplayStart;n!==r&&-1!==n&&(e._iDisplayStart=t?n:n>=e.fnRecordsDisplay()?0:n,e.iInitDisplayStart=-1)}function ye(t,n,r){if(yt(t,"aoServerParams","serverParams",[n]),n&&Array.isArray(n)){var i={},a=/(.*?)\[\]$/;e.each(n,(function(e,t){var n=t.name.match(a);if(n){var r=n[0];i[r]||(i[r]=[]),i[r].push(t.value)}else i[t.name]=t.value})),n=i}var o,s=t.ajax,l=t.oInstance,c=function(e){var n=t.jqXHR?t.jqXHR.status:null;(null===e||"number"==typeof n&&204==n)&&Se(t,e={},[]);var i=e.error||e.sError;i&&pt(t,0,i),t.json=e,yt(t,null,"xhr",[t,e,t.jqXHR]),r(e)};if(e.isPlainObject(s)&&s.data){var h="function"==typeof(o=s.data)?o(n,t):o;n="function"==typeof o&&h?h:e.extend(!0,n,h),delete s.data}var u={data:n,success:c,dataType:"json",cache:!1,type:t.sServerMethod,error:function(n,r,i){var a=yt(t,null,"xhr",[t,null,t.jqXHR]);-1===e.inArray(!0,a)&&("parsererror"==r?pt(t,0,"Invalid JSON response",1):4===n.readyState&&pt(t,0,"Ajax error",7)),Xe(t,!1)}};t.oAjaxData=n,yt(t,null,"preXhr",[t,n]),t.fnServerData?t.fnServerData.call(l,t.sAjaxSource,e.map(n,(function(e,t){return{name:t,value:e}})),c,t):t.sAjaxSource||"string"==typeof s?t.jqXHR=e.ajax(e.extend(u,{url:s||t.sAjaxSource})):"function"==typeof s?t.jqXHR=s.call(l,n,c,t):(t.jqXHR=e.ajax(e.extend(u,s)),s.data=o)}function xe(e){e.iDraw++,Xe(e,!0),ye(e,we(e),(function(t){Te(e,t)}))}function we(t){var n,r,i,a,o=t.aoColumns,s=o.length,c=t.oFeatures,h=t.oPreviousSearch,u=t.aoPreSearchCols,d=[],f=rt(t),p=t._iDisplayStart,g=!1!==c.bPaginate?t._iDisplayLength:-1,m=function(e,t){d.push({name:e,value:t})};m("sEcho",t.iDraw),m("iColumns",s),m("sColumns",w(o,"sName").join(",")),m("iDisplayStart",p),m("iDisplayLength",g);var b={draw:t.iDraw,columns:[],order:[],start:p,length:g,search:{value:h.sSearch,regex:h.bRegex}};for(n=0;n<s;n++)i=o[n],a=u[n],r="function"==typeof i.mData?"function":i.mData,b.columns.push({data:r,name:i.sName,searchable:i.bSearchable,orderable:i.bSortable,search:{value:a.sSearch,regex:a.bRegex}}),m("mDataProp_"+n,r),c.bFilter&&(m("sSearch_"+n,a.sSearch),m("bRegex_"+n,a.bRegex),m("bSearchable_"+n,i.bSearchable)),c.bSort&&m("bSortable_"+n,i.bSortable);c.bFilter&&(m("sSearch",h.sSearch),m("bRegex",h.bRegex)),c.bSort&&(e.each(f,(function(e,t){b.order.push({column:t.col,dir:t.dir}),m("iSortCol_"+e,t.col),m("sSortDir_"+e,t.dir)})),m("iSortingCols",f.length));var v=l.ext.legacy.ajax;return null===v?t.sAjaxSource?d:b:v?d:b}function Te(e,t){var n=function(e,n){return t[e]!==r?t[e]:t[n]},i=Se(e,t),a=n("sEcho","draw"),o=n("iTotalRecords","recordsTotal"),s=n("iTotalDisplayRecords","recordsFiltered");if(a!==r){if(1*a<e.iDraw)return;e.iDraw=1*a}i||(i=[]),ae(e),e._iRecordsTotal=parseInt(o,10),e._iRecordsDisplay=parseInt(s,10);for(var l=0,c=i.length;l<c;l++)G(e,i[l]);e.aiDisplay=e.aiDisplayMaster.slice(),fe(e,!0),e._bInitComplete||Be(e,t),Xe(e,!1)}function Se(t,n,i){var a=e.isPlainObject(t.ajax)&&t.ajax.dataSrc!==r?t.ajax.dataSrc:t.sAjaxDataProp;if(!i)return"data"===a?n.aaData||n[a]:""!==a?ne(a)(n):n;re(a)(n,i)}function Ce(t){var r=t.oClasses,i=t.sTableId,a=t.oLanguage,o=t.oPreviousSearch,s=t.aanFeatures,l='<input type="search" class="'+r.sFilterInput+'"/>',c=a.sSearch;c=c.match(/_INPUT_/)?c.replace("_INPUT_",l):c+l;var h=e("<div/>",{id:s.f?null:i+"_filter",class:r.sFilter}).append(e("<label/>").append(c)),u=function(e){s.f;var n=this.value?this.value:"";o.return&&"Enter"!==e.key||n!=o.sSearch&&(Ee(t,{sSearch:n,bRegex:o.bRegex,bSmart:o.bSmart,bCaseInsensitive:o.bCaseInsensitive,return:o.return}),t._iDisplayStart=0,fe(t))},d=null!==t.searchDelay?t.searchDelay:"ssp"===Tt(t)?400:0,f=e("input",h).val(o.sSearch).attr("placeholder",a.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",d?Je(u,d):u).on("mouseup",(function(e){setTimeout((function(){u.call(f[0],e)}),10)})).on("keypress.DT",(function(e){if(13==e.keyCode)return!1})).attr("aria-controls",i);return e(t.nTable).on("search.dt.DT",(function(e,r){if(t===r)try{f[0]!==n.activeElement&&f.val(o.sSearch)}catch(e){}})),h[0]}function Ee(e,t,n){var i=e.oPreviousSearch,a=e.aoPreSearchCols,o=function(e){i.sSearch=e.sSearch,i.bRegex=e.bRegex,i.bSmart=e.bSmart,i.bCaseInsensitive=e.bCaseInsensitive,i.return=e.return},s=function(e){return e.bEscapeRegex!==r?!e.bEscapeRegex:e.bRegex};if(V(e),"ssp"!=Tt(e)){ke(e,t.sSearch,n,s(t),t.bSmart,t.bCaseInsensitive,t.return),o(t);for(var l=0;l<a.length;l++)_e(e,a[l].sSearch,l,s(a[l]),a[l].bSmart,a[l].bCaseInsensitive);De(e)}else o(t);e.bFiltered=!0,yt(e,null,"search",[e])}function De(t){for(var n,r,i=l.ext.search,a=t.aiDisplay,o=0,s=i.length;o<s;o++){for(var c=[],h=0,u=a.length;h<u;h++)r=a[h],n=t.aoData[r],i[o](t,n._aFilterData,r,n._aData,h)&&c.push(r);a.length=0,e.merge(a,c)}}function _e(e,t,n,r,i,a){if(""!==t){for(var o,s=[],l=e.aiDisplay,c=Ae(t,r,i,a),h=0;h<l.length;h++)o=e.aoData[l[h]]._aFilterData[n],c.test(o)&&s.push(l[h]);e.aiDisplay=s}}function ke(e,t,n,r,i,a){var o,s,c,h=Ae(t,r,i,a),u=e.oPreviousSearch.sSearch,d=e.aiDisplayMaster,f=[];if(0!==l.ext.search.length&&(n=!0),s=Le(e),t.length<=0)e.aiDisplay=d.slice();else{for((s||n||r||u.length>t.length||0!==t.indexOf(u)||e.bSorted)&&(e.aiDisplay=d.slice()),o=e.aiDisplay,c=0;c<o.length;c++)h.test(e.aoData[o[c]]._sFilterRow)&&f.push(o[c]);e.aiDisplay=f}}function Ae(t,n,r,i){if(t=n?t:Me(t),r){var a=e.map(t.match(/"[^"]+"|[^ ]+/g)||[""],(function(e){if('"'===e.charAt(0)){var t=e.match(/^"(.*)"$/);e=t?t[1]:e}return e.replace('"',"")}));t="^(?=.*?"+a.join(")(?=.*?")+").*$"}return new RegExp(t,i?"i":"")}var Me=l.util.escapeRegex,Re=e("<div>")[0],Pe=Re.textContent!==r;function Le(e){var t,n,r,i,a,o,s,l=e.aoColumns,c=!1;for(t=0,r=e.aoData.length;t<r;t++)if(!(s=e.aoData[t])._aFilterData){for(a=[],n=0,i=l.length;n<i;n++)l[n].bSearchable?(null===(o=Z(e,t,n,"filter"))&&(o=""),"string"!=typeof o&&o.toString&&(o=o.toString())):o="",o.indexOf&&-1!==o.indexOf("&")&&(Re.innerHTML=o,o=Pe?Re.textContent:Re.innerText),o.replace&&(o=o.replace(/[\r\n\u2028]/g,"")),a.push(o);s._aFilterData=a,s._sFilterRow=a.join("  "),c=!0}return c}function Ie(e){return{search:e.sSearch,smart:e.bSmart,regex:e.bRegex,caseInsensitive:e.bCaseInsensitive}}function je(e){return{sSearch:e.search,bSmart:e.smart,bRegex:e.regex,bCaseInsensitive:e.caseInsensitive}}function Fe(t){var n=t.sTableId,r=t.aanFeatures.i,i=e("<div/>",{class:t.oClasses.sInfo,id:r?null:n+"_info"});return r||(t.aoDrawCallback.push({fn:Ne,sName:"information"}),i.attr("role","status").attr("aria-live","polite"),e(t.nTable).attr("aria-describedby",n+"_info")),i[0]}function Ne(t){var n=t.aanFeatures.i;if(0!==n.length){var r=t.oLanguage,i=t._iDisplayStart+1,a=t.fnDisplayEnd(),o=t.fnRecordsTotal(),s=t.fnRecordsDisplay(),l=s?r.sInfo:r.sInfoEmpty;s!==o&&(l+=" "+r.sInfoFiltered),l=He(t,l+=r.sInfoPostFix);var c=r.fnInfoCallback;null!==c&&(l=c.call(t.oInstance,t,i,a,o,s,l)),e(n).html(l)}}function He(e,t){var n=e.fnFormatNumber,r=e._iDisplayStart+1,i=e._iDisplayLength,a=e.fnRecordsDisplay(),o=-1===i;return t.replace(/_START_/g,n.call(e,r)).replace(/_END_/g,n.call(e,e.fnDisplayEnd())).replace(/_MAX_/g,n.call(e,e.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(e,a)).replace(/_PAGE_/g,n.call(e,o?1:Math.ceil(r/i))).replace(/_PAGES_/g,n.call(e,o?1:Math.ceil(a/i)))}function Oe(e){var t,n,r,i=e.iInitDisplayStart,a=e.aoColumns,o=e.oFeatures,s=e.bDeferLoading;if(e.bInitialised){for(ge(e),ue(e),de(e,e.aoHeader),de(e,e.aoFooter),Xe(e,!0),o.bAutoWidth&&Ze(e),t=0,n=a.length;t<n;t++)(r=a[t]).sWidth&&(r.nTh.style.width=nt(r.sWidth));yt(e,null,"preInit",[e]),pe(e);var l=Tt(e);("ssp"!=l||s)&&("ajax"==l?ye(e,[],(function(n){var r=Se(e,n);for(t=0;t<r.length;t++)G(e,r[t]);e.iInitDisplayStart=i,pe(e),Xe(e,!1),Be(e,n)}),e):(Xe(e,!1),Be(e)))}else setTimeout((function(){Oe(e)}),200)}function Be(e,t){e._bInitComplete=!0,(t||e.oInit.aaData)&&B(e),yt(e,null,"plugin-init",[e,t]),yt(e,"aoInitComplete","init",[e,t])}function qe(e,t){var n=parseInt(t,10);e._iDisplayLength=n,xt(e),yt(e,null,"length",[e,n])}function We(t){for(var n=t.oClasses,r=t.sTableId,i=t.aLengthMenu,a=Array.isArray(i[0]),o=a?i[0]:i,s=a?i[1]:i,l=e("<select/>",{name:r+"_length","aria-controls":r,class:n.sLengthSelect}),c=0,h=o.length;c<h;c++)l[0][c]=new Option("number"==typeof s[c]?t.fnFormatNumber(s[c]):s[c],o[c]);var u=e("<div><label/></div>").addClass(n.sLength);return t.aanFeatures.l||(u[0].id=r+"_length"),u.children().append(t.oLanguage.sLengthMenu.replace("_MENU_",l[0].outerHTML)),e("select",u).val(t._iDisplayLength).on("change.DT",(function(n){qe(t,e(this).val()),fe(t)})),e(t.nTable).on("length.dt.DT",(function(n,r,i){t===r&&e("select",u).val(i)})),u[0]}function ze(t){var n=t.sPaginationType,r=l.ext.pager[n],i="function"==typeof r,a=function(e){fe(e)},o=e("<div/>").addClass(t.oClasses.sPaging+n)[0],s=t.aanFeatures;return i||r.fnInit(t,o,a),s.p||(o.id=t.sTableId+"_paginate",t.aoDrawCallback.push({fn:function(e){if(i){var t,n,o=e._iDisplayStart,l=e._iDisplayLength,c=e.fnRecordsDisplay(),h=-1===l,u=h?0:Math.ceil(o/l),d=h?1:Math.ceil(c/l),f=r(u,d);for(t=0,n=s.p.length;t<n;t++)wt(e,"pageButton")(e,s.p[t],t,f,u,d)}else r.fnUpdate(e,a)},sName:"pagination"})),o}function Ue(e,t,n){var r=e._iDisplayStart,i=e._iDisplayLength,a=e.fnRecordsDisplay();0===a||-1===i?r=0:"number"==typeof t?(r=t*i)>a&&(r=0):"first"==t?r=0:"previous"==t?(r=i>=0?r-i:0)<0&&(r=0):"next"==t?r+i<a&&(r+=i):"last"==t?r=Math.floor((a-1)/i)*i:pt(e,0,"Unknown paging action: "+t,5);var o=e._iDisplayStart!==r;return e._iDisplayStart=r,o&&(yt(e,null,"page",[e]),n&&fe(e)),o}function Ve(t){return e("<div/>",{id:t.aanFeatures.r?null:t.sTableId+"_processing",class:t.oClasses.sProcessing}).html(t.oLanguage.sProcessing).insertBefore(t.nTable)[0]}function Xe(t,n){t.oFeatures.bProcessing&&e(t.aanFeatures.r).css("display",n?"block":"none"),yt(t,null,"processing",[t,n])}function Ge(t){var n=e(t.nTable),r=t.oScroll;if(""===r.sX&&""===r.sY)return t.nTable;var i=r.sX,a=r.sY,o=t.oClasses,s=n.children("caption"),l=s.length?s[0]._captionSide:null,c=e(n[0].cloneNode(!1)),h=e(n[0].cloneNode(!1)),u=n.children("tfoot"),d="<div/>",f=function(e){return e?nt(e):null};u.length||(u=null);var p=e(d,{class:o.sScrollWrapper}).append(e(d,{class:o.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:i?f(i):"100%"}).append(e(d,{class:o.sScrollHeadInner}).css({"box-sizing":"content-box",width:r.sXInner||"100%"}).append(c.removeAttr("id").css("margin-left",0).append("top"===l?s:null).append(n.children("thead"))))).append(e(d,{class:o.sScrollBody}).css({position:"relative",overflow:"auto",width:f(i)}).append(n));u&&p.append(e(d,{class:o.sScrollFoot}).css({overflow:"hidden",border:0,width:i?f(i):"100%"}).append(e(d,{class:o.sScrollFootInner}).append(h.removeAttr("id").css("margin-left",0).append("bottom"===l?s:null).append(n.children("tfoot")))));var g=p.children(),m=g[0],b=g[1],v=u?g[2]:null;return i&&e(b).on("scroll.DT",(function(e){var t=this.scrollLeft;m.scrollLeft=t,u&&(v.scrollLeft=t)})),e(b).css("max-height",a),r.bCollapse||e(b).css("height",a),t.nScrollHead=m,t.nScrollBody=b,t.nScrollFoot=v,t.aoDrawCallback.push({fn:$e,sName:"scrolling"}),p[0]}function $e(n){var i,a,o,s,l,c,h,u,d,f=n.oScroll,p=f.sX,g=f.sXInner,m=f.sY,b=f.iBarWidth,v=e(n.nScrollHead),y=v[0].style,x=v.children("div"),T=x[0].style,S=x.children("table"),C=n.nScrollBody,E=e(C),D=C.style,_=e(n.nScrollFoot).children("div"),k=_.children("table"),A=e(n.nTHead),M=e(n.nTable),R=M[0],P=R.style,L=n.nTFoot?e(n.nTFoot):null,I=n.oBrowser,j=I.bScrollOversize,F=(w(n.aoColumns,"nTh"),[]),N=[],H=[],O=[],W=function(e){var t=e.style;t.paddingTop="0",t.paddingBottom="0",t.borderTopWidth="0",t.borderBottomWidth="0",t.height=0},z=C.scrollHeight>C.clientHeight;if(n.scrollBarVis!==z&&n.scrollBarVis!==r)return n.scrollBarVis=z,void B(n);n.scrollBarVis=z,M.children("thead, tfoot").remove(),L&&(c=L.clone().prependTo(M),a=L.find("tr"),s=c.find("tr")),l=A.clone().prependTo(M),i=A.find("tr"),o=l.find("tr"),l.find("th, td").removeAttr("tabindex"),p||(D.width="100%",v[0].style.width="100%"),e.each(be(n,l),(function(e,t){h=q(n,e),t.style.width=n.aoColumns[h].sWidth})),L&&Ye((function(e){e.style.width=""}),s),d=M.outerWidth(),""===p?(P.width="100%",j&&(M.find("tbody").height()>C.offsetHeight||"scroll"==E.css("overflow-y"))&&(P.width=nt(M.outerWidth()-b)),d=M.outerWidth()):""!==g&&(P.width=nt(g),d=M.outerWidth()),Ye(W,o),Ye((function(n){var r=t.getComputedStyle?t.getComputedStyle(n).width:nt(e(n).width());H.push(n.innerHTML),F.push(r)}),o),Ye((function(e,t){e.style.width=F[t]}),i),e(o).css("height",0),L&&(Ye(W,s),Ye((function(t){O.push(t.innerHTML),N.push(nt(e(t).css("width")))}),s),Ye((function(e,t){e.style.width=N[t]}),a),e(s).height(0)),Ye((function(e,t){e.innerHTML='<div class="dataTables_sizing">'+H[t]+"</div>",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=F[t]}),o),L&&Ye((function(e,t){e.innerHTML='<div class="dataTables_sizing">'+O[t]+"</div>",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=N[t]}),s),Math.round(M.outerWidth())<Math.round(d)?(u=C.scrollHeight>C.offsetHeight||"scroll"==E.css("overflow-y")?d+b:d,j&&(C.scrollHeight>C.offsetHeight||"scroll"==E.css("overflow-y"))&&(P.width=nt(u-b)),""!==p&&""===g||pt(n,1,"Possible column misalignment",6)):u="100%",D.width=nt(u),y.width=nt(u),L&&(n.nScrollFoot.style.width=nt(u)),m||j&&(D.height=nt(R.offsetHeight+b));var U=M.outerWidth();S[0].style.width=nt(U),T.width=nt(U);var V=M.height()>C.clientHeight||"scroll"==E.css("overflow-y"),X="padding"+(I.bScrollbarLeft?"Left":"Right");T[X]=V?b+"px":"0px",L&&(k[0].style.width=nt(U),_[0].style.width=nt(U),_[0].style[X]=V?b+"px":"0px"),M.children("colgroup").insertBefore(M.children("thead")),E.trigger("scroll"),!n.bSorted&&!n.bFiltered||n._drawHold||(C.scrollTop=0)}function Ye(e,t,n){for(var r,i,a=0,o=0,s=t.length;o<s;){for(r=t[o].firstChild,i=n?n[o].firstChild:null;r;)1===r.nodeType&&(n?e(r,i,a):e(r,a),a++),r=r.nextSibling,i=n?i.nextSibling:null;o++}}var Ke=/<.*?>/g;function Ze(n){var r,i,a,o=n.nTable,s=n.aoColumns,l=n.oScroll,c=l.sY,h=l.sX,u=l.sXInner,d=s.length,f=U(n,"bVisible"),p=e("th",n.nTHead),g=o.getAttribute("width"),m=o.parentNode,b=!1,v=n.oBrowser,y=v.bScrollOversize,x=o.style.width;for(x&&-1!==x.indexOf("%")&&(g=x),r=0;r<f.length;r++)null!==(i=s[f[r]]).sWidth&&(i.sWidth=Qe(i.sWidthOrig,m),b=!0);if(y||!b&&!h&&!c&&d==z(n)&&d==p.length)for(r=0;r<d;r++){var w=q(n,r);null!==w&&(s[w].sWidth=nt(p.eq(r).width()))}else{var T=e(o).clone().css("visibility","hidden").removeAttr("id");T.find("tbody tr").remove();var S=e("<tr/>").appendTo(T.find("tbody"));for(T.find("thead, tfoot").remove(),T.append(e(n.nTHead).clone()).append(e(n.nTFoot).clone()),T.find("tfoot th, tfoot td").css("width",""),p=be(n,T.find("thead")[0]),r=0;r<f.length;r++)i=s[f[r]],p[r].style.width=null!==i.sWidthOrig&&""!==i.sWidthOrig?nt(i.sWidthOrig):"",i.sWidthOrig&&h&&e(p[r]).append(e("<div/>").css({width:i.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(n.aoData.length)for(r=0;r<f.length;r++)i=s[a=f[r]],e(et(n,a)).clone(!1).append(i.sContentPadding).appendTo(S);e("[name]",T).removeAttr("name");var C=e("<div/>").css(h||c?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(T).appendTo(m);h&&u?T.width(u):h?(T.css("width","auto"),T.removeAttr("width"),T.width()<m.clientWidth&&g&&T.width(m.clientWidth)):c?T.width(m.clientWidth):g&&T.width(g);var E=0;for(r=0;r<f.length;r++){var D=e(p[r]),_=D.outerWidth()-D.width(),k=v.bBounding?Math.ceil(p[r].getBoundingClientRect().width):D.outerWidth();E+=k,s[f[r]].sWidth=nt(k-_)}o.style.width=nt(E),C.remove()}if(g&&(o.style.width=nt(g)),(g||h)&&!n._reszEvt){var A=function(){e(t).on("resize.DT-"+n.sInstance,Je((function(){B(n)})))};y?setTimeout(A,1e3):A(),n._reszEvt=!0}}var Je=l.util.throttle;function Qe(t,r){if(!t)return 0;var i=e("<div/>").css("width",nt(t)).appendTo(r||n.body),a=i[0].offsetWidth;return i.remove(),a}function et(t,n){var r=tt(t,n);if(r<0)return null;var i=t.aoData[r];return i.nTr?i.anCells[n]:e("<td/>").html(Z(t,r,n,"display"))[0]}function tt(e,t){for(var n,r=-1,i=-1,a=0,o=e.aoData.length;a<o;a++)(n=(n=(n=Z(e,a,t,"display")+"").replace(Ke,"")).replace(/&nbsp;/g," ")).length>r&&(r=n.length,i=a);return i}function nt(e){return null===e?"0px":"number"==typeof e?e<0?"0px":e+"px":e.match(/\d$/)?e+"px":e}function rt(t){var n,i,a,o,s,c,h,u=[],d=t.aoColumns,f=t.aaSortingFixed,p=e.isPlainObject(f),g=[],m=function(t){t.length&&!Array.isArray(t[0])?g.push(t):e.merge(g,t)};for(Array.isArray(f)&&m(f),p&&f.pre&&m(f.pre),m(t.aaSorting),p&&f.post&&m(f.post),n=0;n<g.length;n++)for(i=0,a=(o=d[h=g[n][0]].aDataSort).length;i<a;i++)c=d[s=o[i]].sType||"string",g[n]._idx===r&&(g[n]._idx=e.inArray(g[n][1],d[s].asSorting)),u.push({src:h,col:s,dir:g[n][1],index:g[n]._idx,type:c,formatter:l.ext.type.order[c+"-pre"]});return u}function it(e){var t,n,r,i,a,o=[],s=l.ext.type.order,c=e.aoData,h=(e.aoColumns,0),u=e.aiDisplayMaster;for(V(e),t=0,n=(a=rt(e)).length;t<n;t++)(i=a[t]).formatter&&h++,ct(e,i.col);if("ssp"!=Tt(e)&&0!==a.length){for(t=0,r=u.length;t<r;t++)o[u[t]]=t;h===a.length?u.sort((function(e,t){var n,r,i,s,l,h=a.length,u=c[e]._aSortData,d=c[t]._aSortData;for(i=0;i<h;i++)if(0!==(s=(n=u[(l=a[i]).col])<(r=d[l.col])?-1:n>r?1:0))return"asc"===l.dir?s:-s;return(n=o[e])<(r=o[t])?-1:n>r?1:0})):u.sort((function(e,t){var n,r,i,l,h,u=a.length,d=c[e]._aSortData,f=c[t]._aSortData;for(i=0;i<u;i++)if(n=d[(h=a[i]).col],r=f[h.col],0!==(l=(s[h.type+"-"+h.dir]||s["string-"+h.dir])(n,r)))return l;return(n=o[e])<(r=o[t])?-1:n>r?1:0}))}e.bSorted=!0}function at(e){for(var t,n,r=e.aoColumns,i=rt(e),a=e.oLanguage.oAria,o=0,s=r.length;o<s;o++){var l=r[o],c=l.asSorting,h=l.ariaTitle||l.sTitle.replace(/<.*?>/g,""),u=l.nTh;u.removeAttribute("aria-sort"),l.bSortable?(i.length>0&&i[0].col==o?(u.setAttribute("aria-sort","asc"==i[0].dir?"ascending":"descending"),n=c[i[0].index+1]||c[0]):n=c[0],t=h+("asc"===n?a.sSortAscending:a.sSortDescending)):t=h,u.setAttribute("aria-label",t)}}function ot(t,n,i,a){var o,s=t.aoColumns[n],l=t.aaSorting,c=s.asSorting,h=function(t,n){var i=t._idx;return i===r&&(i=e.inArray(t[1],c)),i+1<c.length?i+1:n?null:0};if("number"==typeof l[0]&&(l=t.aaSorting=[l]),i&&t.oFeatures.bSortMulti){var u=e.inArray(n,w(l,"0"));-1!==u?(null===(o=h(l[u],!0))&&1===l.length&&(o=0),null===o?l.splice(u,1):(l[u][1]=c[o],l[u]._idx=o)):(l.push([n,c[0],0]),l[l.length-1]._idx=0)}else l.length&&l[0][0]==n?(o=h(l[0]),l.length=1,l[0][1]=c[o],l[0]._idx=o):(l.length=0,l.push([n,c[0]]),l[0]._idx=0);pe(t),"function"==typeof a&&a(t)}function st(e,t,n,r){var i=e.aoColumns[n];bt(t,{},(function(t){!1!==i.bSortable&&(e.oFeatures.bProcessing?(Xe(e,!0),setTimeout((function(){ot(e,n,t.shiftKey,r),"ssp"!==Tt(e)&&Xe(e,!1)}),0)):ot(e,n,t.shiftKey,r))}))}function lt(t){var n,r,i,a=t.aLastSort,o=t.oClasses.sSortColumn,s=rt(t),l=t.oFeatures;if(l.bSort&&l.bSortClasses){for(n=0,r=a.length;n<r;n++)i=a[n].src,e(w(t.aoData,"anCells",i)).removeClass(o+(n<2?n+1:3));for(n=0,r=s.length;n<r;n++)i=s[n].src,e(w(t.aoData,"anCells",i)).addClass(o+(n<2?n+1:3))}t.aLastSort=s}function ct(e,t){var n,r,i,a=e.aoColumns[t],o=l.ext.order[a.sSortDataType];o&&(n=o.call(e.oInstance,e,t,W(e,t)));for(var s=l.ext.type.order[a.sType+"-pre"],c=0,h=e.aoData.length;c<h;c++)(r=e.aoData[c])._aSortData||(r._aSortData=[]),r._aSortData[t]&&!o||(i=o?n[c]:Z(e,c,t,"sort"),r._aSortData[t]=s?s(i):i)}function ht(t){if(!t._bLoadingState){var n={time:+new Date,start:t._iDisplayStart,length:t._iDisplayLength,order:e.extend(!0,[],t.aaSorting),search:Ie(t.oPreviousSearch),columns:e.map(t.aoColumns,(function(e,n){return{visible:e.bVisible,search:Ie(t.aoPreSearchCols[n])}}))};t.oSavedState=n,yt(t,"aoStateSaveParams","stateSaveParams",[t,n]),t.oFeatures.bStateSave&&!t.bDestroying&&t.fnStateSaveCallback.call(t.oInstance,t,n)}}function ut(e,t,n){if(e.oFeatures.bStateSave){var i=function(t){dt(e,t,n)},a=e.fnStateLoadCallback.call(e.oInstance,e,i);return a!==r&&dt(e,a,n),!0}n()}function dt(t,n,i){var a,o,s=t.aoColumns;t._bLoadingState=!0;var c=t._bInitComplete?new l.Api(t):null;if(!n||!n.time)return t._bLoadingState=!1,void i();var h=yt(t,"aoStateLoadParams","stateLoadParams",[t,n]);if(-1!==e.inArray(!1,h))return t._bLoadingState=!1,void i();var u=t.iStateDuration;if(u>0&&n.time<+new Date-1e3*u)return t._bLoadingState=!1,void i();if(n.columns&&s.length!==n.columns.length)return t._bLoadingState=!1,void i();if(t.oLoadedState=e.extend(!0,{},n),n.start!==r&&(null===c?(t._iDisplayStart=n.start,t.iInitDisplayStart=n.start):Ue(t,n.start/n.length)),n.length!==r&&(t._iDisplayLength=n.length),n.order!==r&&(t.aaSorting=[],e.each(n.order,(function(e,n){t.aaSorting.push(n[0]>=s.length?[0,n[1]]:n)}))),n.search!==r&&e.extend(t.oPreviousSearch,je(n.search)),n.columns){for(a=0,o=n.columns.length;a<o;a++){var d=n.columns[a];d.visible!==r&&(c?c.column(a).visible(d.visible,!1):s[a].bVisible=d.visible),d.search!==r&&e.extend(t.aoPreSearchCols[a],je(d.search))}c&&c.columns.adjust()}t._bLoadingState=!1,yt(t,"aoStateLoaded","stateLoaded",[t,n]),i()}function ft(t){var n=l.settings,r=e.inArray(t,w(n,"nTable"));return-1!==r?n[r]:null}function pt(e,n,r,i){if(r="DataTables warning: "+(e?"table id="+e.sTableId+" - ":"")+r,i&&(r+=". For more information about this error, please see http://datatables.net/tn/"+i),n)t.console&&console.log;else{var a=l.ext,o=a.sErrMode||a.errMode;if(e&&yt(e,null,"error",[e,i,r]),"alert"==o)alert(r);else{if("throw"==o)throw new Error(r);"function"==typeof o&&o(e,i,r)}}}function gt(t,n,i,a){Array.isArray(i)?e.each(i,(function(e,r){Array.isArray(r)?gt(t,n,r[0],r[1]):gt(t,n,r)})):(a===r&&(a=i),n[i]!==r&&(t[a]=n[i]))}function mt(t,n,r){var i;for(var a in n)n.hasOwnProperty(a)&&(i=n[a],e.isPlainObject(i)?(e.isPlainObject(t[a])||(t[a]={}),e.extend(!0,t[a],i)):r&&"data"!==a&&"aaData"!==a&&Array.isArray(i)?t[a]=i.slice():t[a]=i);return t}function bt(t,n,r){e(t).on("click.DT",n,(function(n){e(t).trigger("blur"),r(n)})).on("keypress.DT",n,(function(e){13===e.which&&(e.preventDefault(),r(e))})).on("selectstart.DT",(function(){return!1}))}function vt(e,t,n,r){n&&e[t].push({fn:n,sName:r})}function yt(t,n,r,i){var a=[];if(n&&(a=e.map(t[n].slice().reverse(),(function(e,n){return e.fn.apply(t.oInstance,i)}))),null!==r){var o=e.Event(r+".dt");e(t.nTable).trigger(o,i),a.push(o.result)}return a}function xt(e){var t=e._iDisplayStart,n=e.fnDisplayEnd(),r=e._iDisplayLength;t>=n&&(t=n-r),t-=t%r,(-1===r||t<0)&&(t=0),e._iDisplayStart=t}function wt(t,n){var r=t.renderer,i=l.ext.renderer[n];return e.isPlainObject(r)&&r[n]?i[r[n]]||i._:"string"==typeof r&&i[r]||i._}function Tt(e){return e.oFeatures.bServerSide?"ssp":e.ajax||e.sAjaxSource?"ajax":"dom"}var St=[],Ct=Array.prototype,Et=function(t){var n,r,i=l.settings,a=e.map(i,(function(e,t){return e.nTable}));return t?t.nTable&&t.oApi?[t]:t.nodeName&&"table"===t.nodeName.toLowerCase()?-1!==(n=e.inArray(t,a))?[i[n]]:null:t&&"function"==typeof t.settings?t.settings().toArray():("string"==typeof t?r=e(t):t instanceof e&&(r=t),r?r.map((function(t){return-1!==(n=e.inArray(this,a))?i[n]:null})).toArray():void 0):[]};a=function(t,n){if(!(this instanceof a))return new a(t,n);var r=[],i=function(e){var t=Et(e);t&&r.push.apply(r,t)};if(Array.isArray(t))for(var o=0,s=t.length;o<s;o++)i(t[o]);else i(t);this.context=_(r),n&&e.merge(this,n),this.selector={rows:null,cols:null,opts:null},a.extend(this,this,St)},l.Api=a,e.extend(a.prototype,{any:function(){return 0!==this.count()},concat:Ct.concat,context:[],count:function(){return this.flatten().length},each:function(e){for(var t=0,n=this.length;t<n;t++)e.call(this,this[t],t,this);return this},eq:function(e){var t=this.context;return t.length>e?new a(t[e],this[e]):null},filter:function(e){var t=[];if(Ct.filter)t=Ct.filter.call(this,e,this);else for(var n=0,r=this.length;n<r;n++)e.call(this,this[n],n,this)&&t.push(this[n]);return new a(this.context,t)},flatten:function(){var e=[];return new a(this.context,e.concat.apply(e,this.toArray()))},join:Ct.join,indexOf:Ct.indexOf||function(e,t){for(var n=t||0,r=this.length;n<r;n++)if(this[n]===e)return n;return-1},iterator:function(e,t,n,i){var o,s,l,c,h,u,d,f,p=[],g=this.context,m=this.selector;for("string"==typeof e&&(i=n,n=t,t=e,e=!1),s=0,l=g.length;s<l;s++){var b=new a(g[s]);if("table"===t)(o=n.call(b,g[s],s))!==r&&p.push(o);else if("columns"===t||"rows"===t)(o=n.call(b,g[s],this[s],s))!==r&&p.push(o);else if("column"===t||"column-rows"===t||"row"===t||"cell"===t)for(d=this[s],"column-rows"===t&&(u=Rt(g[s],m.opts)),c=0,h=d.length;c<h;c++)f=d[c],(o="cell"===t?n.call(b,g[s],f.row,f.column,s,c):n.call(b,g[s],f,s,c,u))!==r&&p.push(o)}if(p.length||i){var v=new a(g,e?p.concat.apply([],p):p),y=v.selector;return y.rows=m.rows,y.cols=m.cols,y.opts=m.opts,v}return this},lastIndexOf:Ct.lastIndexOf||function(e,t){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(e){var t=[];if(Ct.map)t=Ct.map.call(this,e,this);else for(var n=0,r=this.length;n<r;n++)t.push(e.call(this,this[n],n));return new a(this.context,t)},pluck:function(e){return this.map((function(t){return t[e]}))},pop:Ct.pop,push:Ct.push,reduce:Ct.reduce||function(e,t){return N(this,e,t,0,this.length,1)},reduceRight:Ct.reduceRight||function(e,t){return N(this,e,t,this.length-1,-1,-1)},reverse:Ct.reverse,selector:null,shift:Ct.shift,slice:function(){return new a(this.context,this)},sort:Ct.sort,splice:Ct.splice,toArray:function(){return Ct.slice.call(this)},to$:function(){return e(this)},toJQuery:function(){return e(this)},unique:function(){return new a(this.context,_(this))},unshift:Ct.unshift}),a.extend=function(e,t,n){if(n.length&&t&&(t instanceof a||t.__dt_wrapper)){var r,i,o,s=function(e,t,n){return function(){var r=t.apply(e,arguments);return a.extend(r,r,n.methodExt),r}};for(r=0,i=n.length;r<i;r++)t[(o=n[r]).name]="function"===o.type?s(e,o.val,o):"object"===o.type?{}:o.val,t[o.name].__dt_wrapper=!0,a.extend(e,t[o.name],o.propExt)}},a.register=o=function(t,n){if(Array.isArray(t))for(var r=0,i=t.length;r<i;r++)a.register(t[r],n);else{var o,s,l,c,h=t.split("."),u=St,d=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n].name===t)return e[n];return null};for(o=0,s=h.length;o<s;o++){var f=d(u,l=(c=-1!==h[o].indexOf("()"))?h[o].replace("()",""):h[o]);f||(f={name:l,val:{},methodExt:[],propExt:[],type:"object"},u.push(f)),o===s-1?(f.val=n,f.type="function"==typeof n?"function":e.isPlainObject(n)?"object":"other"):u=c?f.methodExt:f.propExt}}},a.registerPlural=s=function(e,t,n){a.register(e,n),a.register(t,(function(){var e=n.apply(this,arguments);return e===this?this:e instanceof a?e.length?Array.isArray(e[0])?new a(e.context,e[0]):e[0]:r:e}))};var Dt=function(t,n){if(Array.isArray(t))return e.map(t,(function(e){return Dt(e,n)}));if("number"==typeof t)return[n[t]];var r=e.map(n,(function(e,t){return e.nTable}));return e(r).filter(t).map((function(t){var i=e.inArray(this,r);return n[i]})).toArray()};o("tables()",(function(e){return e!==r&&null!==e?new a(Dt(e,this.context)):this})),o("table()",(function(e){var t=this.tables(e),n=t.context;return n.length?new a(n[0]):t})),s("tables().nodes()","table().node()",(function(){return this.iterator("table",(function(e){return e.nTable}),1)})),s("tables().body()","table().body()",(function(){return this.iterator("table",(function(e){return e.nTBody}),1)})),s("tables().header()","table().header()",(function(){return this.iterator("table",(function(e){return e.nTHead}),1)})),s("tables().footer()","table().footer()",(function(){return this.iterator("table",(function(e){return e.nTFoot}),1)})),s("tables().containers()","table().container()",(function(){return this.iterator("table",(function(e){return e.nTableWrapper}),1)})),o("draw()",(function(e){return this.iterator("table",(function(t){"page"===e?fe(t):("string"==typeof e&&(e="full-hold"!==e),pe(t,!1===e))}))})),o("page()",(function(e){return e===r?this.page.info().page:this.iterator("table",(function(t){Ue(t,e)}))})),o("page.info()",(function(e){if(0===this.context.length)return r;var t=this.context[0],n=t._iDisplayStart,i=t.oFeatures.bPaginate?t._iDisplayLength:-1,a=t.fnRecordsDisplay(),o=-1===i;return{page:o?0:Math.floor(n/i),pages:o?1:Math.ceil(a/i),start:n,end:t.fnDisplayEnd(),length:i,recordsTotal:t.fnRecordsTotal(),recordsDisplay:a,serverSide:"ssp"===Tt(t)}})),o("page.len()",(function(e){return e===r?0!==this.context.length?this.context[0]._iDisplayLength:r:this.iterator("table",(function(t){qe(t,e)}))}));var _t=function(e,t,n){if(n){var r=new a(e);r.one("draw",(function(){n(r.ajax.json())}))}if("ssp"==Tt(e))pe(e,t);else{Xe(e,!0);var i=e.jqXHR;i&&4!==i.readyState&&i.abort(),ye(e,[],(function(n){ae(e);for(var r=Se(e,n),i=0,a=r.length;i<a;i++)G(e,r[i]);pe(e,t),Xe(e,!1)}))}};o("ajax.json()",(function(){var e=this.context;if(e.length>0)return e[0].json})),o("ajax.params()",(function(){var e=this.context;if(e.length>0)return e[0].oAjaxData})),o("ajax.reload()",(function(e,t){return this.iterator("table",(function(n){_t(n,!1===t,e)}))})),o("ajax.url()",(function(t){var n=this.context;return t===r?0===n.length?r:(n=n[0]).ajax?e.isPlainObject(n.ajax)?n.ajax.url:n.ajax:n.sAjaxSource:this.iterator("table",(function(n){e.isPlainObject(n.ajax)?n.ajax.url=t:n.ajax=t}))})),o("ajax.url().load()",(function(e,t){return this.iterator("table",(function(n){_t(n,!1===t,e)}))}));var kt=function(e,t,n,a,o){var s,l,c,h,u,d,f=[],p=typeof t;for(t&&"string"!==p&&"function"!==p&&t.length!==r||(t=[t]),c=0,h=t.length;c<h;c++)for(u=0,d=(l=t[c]&&t[c].split&&!t[c].match(/[\[\(:]/)?t[c].split(","):[t[c]]).length;u<d;u++)(s=n("string"==typeof l[u]?l[u].trim():l[u]))&&s.length&&(f=f.concat(s));var g=i.selector[e];if(g.length)for(c=0,h=g.length;c<h;c++)f=g[c](a,o,f);return _(f)},At=function(t){return t||(t={}),t.filter&&t.search===r&&(t.search=t.filter),e.extend({search:"none",order:"current",page:"all"},t)},Mt=function(e){for(var t=0,n=e.length;t<n;t++)if(e[t].length>0)return e[0]=e[t],e[0].length=1,e.length=1,e.context=[e.context[t]],e;return e.length=0,e},Rt=function(t,n){var r,i=[],a=t.aiDisplay,o=t.aiDisplayMaster,s=n.search,l=n.order,c=n.page;if("ssp"==Tt(t))return"removed"===s?[]:S(0,o.length);if("current"==c)for(u=t._iDisplayStart,d=t.fnDisplayEnd();u<d;u++)i.push(a[u]);else if("current"==l||"applied"==l){if("none"==s)i=o.slice();else if("applied"==s)i=a.slice();else if("removed"==s){for(var h={},u=0,d=a.length;u<d;u++)h[a[u]]=null;i=e.map(o,(function(e){return h.hasOwnProperty(e)?null:e}))}}else if("index"==l||"original"==l)for(u=0,d=t.aoData.length;u<d;u++)("none"==s||-1===(r=e.inArray(u,a))&&"removed"==s||r>=0&&"applied"==s)&&i.push(u);return i},Pt=function(t,n,i){var a;return kt("row",n,(function(n){var o=m(n),s=t.aoData;if(null!==o&&!i)return[o];if(a||(a=Rt(t,i)),null!==o&&-1!==e.inArray(o,a))return[o];if(null===n||n===r||""===n)return a;if("function"==typeof n)return e.map(a,(function(e){var t=s[e];return n(e,t._aData,t.nTr)?e:null}));if(n.nodeName){var l=n._DT_RowIndex,c=n._DT_CellIndex;if(l!==r)return s[l]&&s[l].nTr===n?[l]:[];if(c)return s[c.row]&&s[c.row].nTr===n.parentNode?[c.row]:[];var h=e(n).closest("*[data-dt-row]");return h.length?[h.data("dt-row")]:[]}if("string"==typeof n&&"#"===n.charAt(0)){var u=t.aIds[n.replace(/^#/,"")];if(u!==r)return[u.idx]}var d=C(T(t.aoData,a,"nTr"));return e(d).filter(n).map((function(){return this._DT_RowIndex})).toArray()}),t,i)};o("rows()",(function(t,n){t===r?t="":e.isPlainObject(t)&&(n=t,t=""),n=At(n);var i=this.iterator("table",(function(e){return Pt(e,t,n)}),1);return i.selector.rows=t,i.selector.opts=n,i})),o("rows().nodes()",(function(){return this.iterator("row",(function(e,t){return e.aoData[t].nTr||r}),1)})),o("rows().data()",(function(){return this.iterator(!0,"rows",(function(e,t){return T(e.aoData,t,"_aData")}),1)})),s("rows().cache()","row().cache()",(function(e){return this.iterator("row",(function(t,n){var r=t.aoData[n];return"search"===e?r._aFilterData:r._aSortData}),1)})),s("rows().invalidate()","row().invalidate()",(function(e){return this.iterator("row",(function(t,n){se(t,n,e)}))})),s("rows().indexes()","row().index()",(function(){return this.iterator("row",(function(e,t){return t}),1)})),s("rows().ids()","row().id()",(function(e){for(var t=[],n=this.context,r=0,i=n.length;r<i;r++)for(var o=0,s=this[r].length;o<s;o++){var l=n[r].rowIdFn(n[r].aoData[this[r][o]]._aData);t.push((!0===e?"#":"")+l)}return new a(n,t)})),s("rows().remove()","row().remove()",(function(){var e=this;return this.iterator("row",(function(t,n,i){var a,o,s,l,c,h,u=t.aoData,d=u[n];for(u.splice(n,1),a=0,o=u.length;a<o;a++)if(h=(c=u[a]).anCells,null!==c.nTr&&(c.nTr._DT_RowIndex=a),null!==h)for(s=0,l=h.length;s<l;s++)h[s]._DT_CellIndex.row=a;oe(t.aiDisplayMaster,n),oe(t.aiDisplay,n),oe(e[i],n,!1),t._iRecordsDisplay>0&&t._iRecordsDisplay--,xt(t);var f=t.rowIdFn(d._aData);f!==r&&delete t.aIds[f]})),this.iterator("table",(function(e){for(var t=0,n=e.aoData.length;t<n;t++)e.aoData[t].idx=t})),this})),o("rows.add()",(function(t){var n=this.iterator("table",(function(e){var n,r,i,a=[];for(r=0,i=t.length;r<i;r++)(n=t[r]).nodeName&&"TR"===n.nodeName.toUpperCase()?a.push($(e,n)[0]):a.push(G(e,n));return a}),1),r=this.rows(-1);return r.pop(),e.merge(r,n),r})),o("row()",(function(e,t){return Mt(this.rows(e,t))})),o("row().data()",(function(e){var t=this.context;if(e===r)return t.length&&this.length?t[0].aoData[this[0]]._aData:r;var n=t[0].aoData[this[0]];return n._aData=e,Array.isArray(e)&&n.nTr&&n.nTr.id&&re(t[0].rowId)(e,n.nTr.id),se(t[0],this[0],"data"),this})),o("row().node()",(function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]].nTr||null})),o("row.add()",(function(t){t instanceof e&&t.length&&(t=t[0]);var n=this.iterator("table",(function(e){return t.nodeName&&"TR"===t.nodeName.toUpperCase()?$(e,t)[0]:G(e,t)}));return this.row(n[0])})),e(n).on("plugin-init.dt",(function(t,n){var r=new a(n);r.on("stateSaveParams",(function(e,t,n){for(var r=t.rowIdFn,i=t.aoData,a=[],o=0;o<i.length;o++)i[o]._detailsShow&&a.push("#"+r(i[o]._aData));n.childRows=a}));var i=r.state.loaded();i&&i.childRows&&r.rows(e.map(i.childRows,(function(e){return e.replace(/:/g,"\\:")}))).every((function(){yt(n,null,"requestChild",[this])}))}));var Lt=function(t,n,r,i){var a=[],o=function(n,r){if(Array.isArray(n)||n instanceof e)for(var i=0,s=n.length;i<s;i++)o(n[i],r);else if(n.nodeName&&"tr"===n.nodeName.toLowerCase())a.push(n);else{var l=e("<tr><td></td></tr>").addClass(r);e("td",l).addClass(r).html(n)[0].colSpan=z(t),a.push(l[0])}};o(r,i),n._details&&n._details.detach(),n._details=e(a),n._detailsShow&&n._details.insertAfter(n.nTr)},It=l.util.throttle((function(e){ht(e[0])}),500),jt=function(t,n){var i=t.context;if(i.length){var a=i[0].aoData[n!==r?n:t[0]];a&&a._details&&(a._details.remove(),a._detailsShow=r,a._details=r,e(a.nTr).removeClass("dt-hasChild"),It(i))}},Ft=function(t,n){var r=t.context;if(r.length&&t.length){var i=r[0].aoData[t[0]];i._details&&(i._detailsShow=n,n?(i._details.insertAfter(i.nTr),e(i.nTr).addClass("dt-hasChild")):(i._details.detach(),e(i.nTr).removeClass("dt-hasChild")),yt(r[0],null,"childRow",[n,t.row(t[0])]),Nt(r[0]),It(r))}},Nt=function(e){var t=new a(e),n=".dt.DT_details",r="draw"+n,i="column-visibility"+n,o="destroy"+n,s=e.aoData;t.off(r+" "+i+" "+o),w(s,"_details").length>0&&(t.on(r,(function(n,r){e===r&&t.rows({page:"current"}).eq(0).each((function(e){var t=s[e];t._detailsShow&&t._details.insertAfter(t.nTr)}))})),t.on(i,(function(t,n,r,i){if(e===n)for(var a,o=z(n),l=0,c=s.length;l<c;l++)(a=s[l])._details&&a._details.children("td[colspan]").attr("colspan",o)})),t.on(o,(function(n,r){if(e===r)for(var i=0,a=s.length;i<a;i++)s[i]._details&&jt(t,i)})))},Ht="row().child",Ot=Ht+"()";o(Ot,(function(e,t){var n=this.context;return e===r?n.length&&this.length?n[0].aoData[this[0]]._details:r:(!0===e?this.child.show():!1===e?jt(this):n.length&&this.length&&Lt(n[0],n[0].aoData[this[0]],e,t),this)})),o([Ht+".show()",Ot+".show()"],(function(e){return Ft(this,!0),this})),o([Ht+".hide()",Ot+".hide()"],(function(){return Ft(this,!1),this})),o([Ht+".remove()",Ot+".remove()"],(function(){return jt(this),this})),o(Ht+".isShown()",(function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]]._detailsShow||!1}));var Bt=/^([^:]+):(name|visIdx|visible)$/,qt=function(e,t,n,r,i){for(var a=[],o=0,s=i.length;o<s;o++)a.push(Z(e,i[o],t));return a},Wt=function(t,n,r){var i=t.aoColumns,a=w(i,"sName"),o=w(i,"nTh");return kt("column",n,(function(n){var s=m(n);if(""===n)return S(i.length);if(null!==s)return[s>=0?s:i.length+s];if("function"==typeof n){var l=Rt(t,r);return e.map(i,(function(e,r){return n(r,qt(t,r,0,0,l),o[r])?r:null}))}var c="string"==typeof n?n.match(Bt):"";if(c)switch(c[2]){case"visIdx":case"visible":var h=parseInt(c[1],10);if(h<0){var u=e.map(i,(function(e,t){return e.bVisible?t:null}));return[u[u.length+h]]}return[q(t,h)];case"name":return e.map(a,(function(e,t){return e===c[1]?t:null}));default:return[]}if(n.nodeName&&n._DT_CellIndex)return[n._DT_CellIndex.column];var d=e(o).filter(n).map((function(){return e.inArray(this,o)})).toArray();if(d.length||!n.nodeName)return d;var f=e(n).closest("*[data-dt-column]");return f.length?[f.data("dt-column")]:[]}),t,r)},zt=function(t,n,i){var a,o,s,l,c=t.aoColumns,h=c[n],u=t.aoData;if(i===r)return h.bVisible;if(h.bVisible!==i){if(i){var d=e.inArray(!0,w(c,"bVisible"),n+1);for(o=0,s=u.length;o<s;o++)l=u[o].nTr,a=u[o].anCells,l&&l.insertBefore(a[n],a[d]||null)}else e(w(t.aoData,"anCells",n)).detach();h.bVisible=i}};o("columns()",(function(t,n){t===r?t="":e.isPlainObject(t)&&(n=t,t=""),n=At(n);var i=this.iterator("table",(function(e){return Wt(e,t,n)}),1);return i.selector.cols=t,i.selector.opts=n,i})),s("columns().header()","column().header()",(function(e,t){return this.iterator("column",(function(e,t){return e.aoColumns[t].nTh}),1)})),s("columns().footer()","column().footer()",(function(e,t){return this.iterator("column",(function(e,t){return e.aoColumns[t].nTf}),1)})),s("columns().data()","column().data()",(function(){return this.iterator("column-rows",qt,1)})),s("columns().dataSrc()","column().dataSrc()",(function(){return this.iterator("column",(function(e,t){return e.aoColumns[t].mData}),1)})),s("columns().cache()","column().cache()",(function(e){return this.iterator("column-rows",(function(t,n,r,i,a){return T(t.aoData,a,"search"===e?"_aFilterData":"_aSortData",n)}),1)})),s("columns().nodes()","column().nodes()",(function(){return this.iterator("column-rows",(function(e,t,n,r,i){return T(e.aoData,i,"anCells",t)}),1)})),s("columns().visible()","column().visible()",(function(t,n){var i=this,a=this.iterator("column",(function(e,n){if(t===r)return e.aoColumns[n].bVisible;zt(e,n,t)}));return t!==r&&this.iterator("table",(function(a){de(a,a.aoHeader),de(a,a.aoFooter),a.aiDisplay.length||e(a.nTBody).find("td[colspan]").attr("colspan",z(a)),ht(a),i.iterator("column",(function(e,r){yt(e,null,"column-visibility",[e,r,t,n])})),(n===r||n)&&i.columns.adjust()})),a})),s("columns().indexes()","column().index()",(function(e){return this.iterator("column",(function(t,n){return"visible"===e?W(t,n):n}),1)})),o("columns.adjust()",(function(){return this.iterator("table",(function(e){B(e)}),1)})),o("column.index()",(function(e,t){if(0!==this.context.length){var n=this.context[0];if("fromVisible"===e||"toData"===e)return q(n,t);if("fromData"===e||"toVisible"===e)return W(n,t)}})),o("column()",(function(e,t){return Mt(this.columns(e,t))}));var Ut=function(t,n,i){var a,o,s,l,c,h,u,d=t.aoData,f=Rt(t,i),p=C(T(d,f,"anCells")),g=e(k([],p)),m=t.aoColumns.length;return kt("cell",n,(function(n){var i="function"==typeof n;if(null===n||n===r||i){for(o=[],s=0,l=f.length;s<l;s++)for(a=f[s],c=0;c<m;c++)h={row:a,column:c},i?(u=d[a],n(h,Z(t,a,c),u.anCells?u.anCells[c]:null)&&o.push(h)):o.push(h);return o}if(e.isPlainObject(n))return n.column!==r&&n.row!==r&&-1!==e.inArray(n.row,f)?[n]:[];var p=g.filter(n).map((function(e,t){return{row:t._DT_CellIndex.row,column:t._DT_CellIndex.column}})).toArray();return p.length||!n.nodeName?p:(u=e(n).closest("*[data-dt-row]")).length?[{row:u.data("dt-row"),column:u.data("dt-column")}]:[]}),t,i)};o("cells()",(function(t,n,i){if(e.isPlainObject(t)&&(t.row===r?(i=t,t=null):(i=n,n=null)),e.isPlainObject(n)&&(i=n,n=null),null===n||n===r)return this.iterator("table",(function(e){return Ut(e,t,At(i))}));var a,o,s,l,c=i?{page:i.page,order:i.order,search:i.search}:{},h=this.columns(n,c),u=this.rows(t,c),d=this.iterator("table",(function(e,t){var n=[];for(a=0,o=u[t].length;a<o;a++)for(s=0,l=h[t].length;s<l;s++)n.push({row:u[t][a],column:h[t][s]});return n}),1),f=i&&i.selected?this.cells(d,i):d;return e.extend(f.selector,{cols:n,rows:t,opts:i}),f})),s("cells().nodes()","cell().node()",(function(){return this.iterator("cell",(function(e,t,n){var i=e.aoData[t];return i&&i.anCells?i.anCells[n]:r}),1)})),o("cells().data()",(function(){return this.iterator("cell",(function(e,t,n){return Z(e,t,n)}),1)})),s("cells().cache()","cell().cache()",(function(e){return e="search"===e?"_aFilterData":"_aSortData",this.iterator("cell",(function(t,n,r){return t.aoData[n][e][r]}),1)})),s("cells().render()","cell().render()",(function(e){return this.iterator("cell",(function(t,n,r){return Z(t,n,r,e)}),1)})),s("cells().indexes()","cell().index()",(function(){return this.iterator("cell",(function(e,t,n){return{row:t,column:n,columnVisible:W(e,n)}}),1)})),s("cells().invalidate()","cell().invalidate()",(function(e){return this.iterator("cell",(function(t,n,r){se(t,n,e,r)}))})),o("cell()",(function(e,t,n){return Mt(this.cells(e,t,n))})),o("cell().data()",(function(e){var t=this.context,n=this[0];return e===r?t.length&&n.length?Z(t[0],n[0].row,n[0].column):r:(J(t[0],n[0].row,n[0].column,e),se(t[0],n[0].row,"data",n[0].column),this)})),o("order()",(function(e,t){var n=this.context;return e===r?0!==n.length?n[0].aaSorting:r:("number"==typeof e?e=[[e,t]]:e.length&&!Array.isArray(e[0])&&(e=Array.prototype.slice.call(arguments)),this.iterator("table",(function(t){t.aaSorting=e.slice()})))})),o("order.listener()",(function(e,t,n){return this.iterator("table",(function(r){st(r,e,t,n)}))})),o("order.fixed()",(function(t){if(!t){var n=this.context,i=n.length?n[0].aaSortingFixed:r;return Array.isArray(i)?{pre:i}:i}return this.iterator("table",(function(n){n.aaSortingFixed=e.extend(!0,{},t)}))})),o(["columns().order()","column().order()"],(function(t){var n=this;return this.iterator("table",(function(r,i){var a=[];e.each(n[i],(function(e,n){a.push([n,t])})),r.aaSorting=a}))})),o("search()",(function(t,n,i,a){var o=this.context;return t===r?0!==o.length?o[0].oPreviousSearch.sSearch:r:this.iterator("table",(function(r){r.oFeatures.bFilter&&Ee(r,e.extend({},r.oPreviousSearch,{sSearch:t+"",bRegex:null!==n&&n,bSmart:null===i||i,bCaseInsensitive:null===a||a}),1)}))})),s("columns().search()","column().search()",(function(t,n,i,a){return this.iterator("column",(function(o,s){var l=o.aoPreSearchCols;if(t===r)return l[s].sSearch;o.oFeatures.bFilter&&(e.extend(l[s],{sSearch:t+"",bRegex:null!==n&&n,bSmart:null===i||i,bCaseInsensitive:null===a||a}),Ee(o,o.oPreviousSearch,1))}))})),o("state()",(function(){return this.context.length?this.context[0].oSavedState:null})),o("state.clear()",(function(){return this.iterator("table",(function(e){e.fnStateSaveCallback.call(e.oInstance,e,{})}))})),o("state.loaded()",(function(){return this.context.length?this.context[0].oLoadedState:null})),o("state.save()",(function(){return this.iterator("table",(function(e){ht(e)}))})),l.versionCheck=l.fnVersionCheck=function(e){for(var t,n,r=l.version.split("."),i=e.split("."),a=0,o=i.length;a<o;a++)if((t=parseInt(r[a],10)||0)!==(n=parseInt(i[a],10)||0))return t>n;return!0},l.isDataTable=l.fnIsDataTable=function(t){var n=e(t).get(0),r=!1;return t instanceof l.Api||(e.each(l.settings,(function(t,i){var a=i.nScrollHead?e("table",i.nScrollHead)[0]:null,o=i.nScrollFoot?e("table",i.nScrollFoot)[0]:null;i.nTable!==n&&a!==n&&o!==n||(r=!0)})),r)},l.tables=l.fnTables=function(t){var n=!1;e.isPlainObject(t)&&(n=t.api,t=t.visible);var r=e.map(l.settings,(function(n){if(!t||t&&e(n.nTable).is(":visible"))return n.nTable}));return n?new a(r):r},l.camelToHungarian=R,o("$()",(function(t,n){var r=this.rows(n).nodes(),i=e(r);return e([].concat(i.filter(t).toArray(),i.find(t).toArray()))})),e.each(["on","one","off"],(function(t,n){o(n+"()",(function(){var t=Array.prototype.slice.call(arguments);t[0]=e.map(t[0].split(/\s/),(function(e){return e.match(/\.dt\b/)?e:e+".dt"})).join(" ");var r=e(this.tables().nodes());return r[n].apply(r,t),this}))})),o("clear()",(function(){return this.iterator("table",(function(e){ae(e)}))})),o("settings()",(function(){return new a(this.context,this.context)})),o("init()",(function(){var e=this.context;return e.length?e[0].oInit:null})),o("data()",(function(){return this.iterator("table",(function(e){return w(e.aoData,"_aData")})).flatten()})),o("destroy()",(function(n){return n=n||!1,this.iterator("table",(function(r){var i,o=r.nTableWrapper.parentNode,s=r.oClasses,c=r.nTable,h=r.nTBody,u=r.nTHead,d=r.nTFoot,f=e(c),p=e(h),g=e(r.nTableWrapper),m=e.map(r.aoData,(function(e){return e.nTr}));r.bDestroying=!0,yt(r,"aoDestroyCallback","destroy",[r]),n||new a(r).columns().visible(!0),g.off(".DT").find(":not(tbody *)").off(".DT"),e(t).off(".DT-"+r.sInstance),c!=u.parentNode&&(f.children("thead").detach(),f.append(u)),d&&c!=d.parentNode&&(f.children("tfoot").detach(),f.append(d)),r.aaSorting=[],r.aaSortingFixed=[],lt(r),e(m).removeClass(r.asStripeClasses.join(" ")),e("th, td",u).removeClass(s.sSortable+" "+s.sSortableAsc+" "+s.sSortableDesc+" "+s.sSortableNone),p.children().detach(),p.append(m);var b=n?"remove":"detach";f[b](),g[b](),!n&&o&&(o.insertBefore(c,r.nTableReinsertBefore),f.css("width",r.sDestroyWidth).removeClass(s.sTable),(i=r.asDestroyStripes.length)&&p.children().each((function(t){e(this).addClass(r.asDestroyStripes[t%i])})));var v=e.inArray(r,l.settings);-1!==v&&l.settings.splice(v,1)}))})),e.each(["column","row","cell"],(function(e,t){o(t+"s().every()",(function(e){var n=this.selector.opts,i=this;return this.iterator(t,(function(a,o,s,l,c){e.call(i[t](o,"cell"===t?s:n,"cell"===t?n:r),o,s,l,c)}))}))})),o("i18n()",(function(t,n,i){var a=this.context[0],o=ne(t)(a.oLanguage);return o===r&&(o=n),i!==r&&e.isPlainObject(o)&&(o=o[i]!==r?o[i]:o._),o.replace("%d",i)})),l.version="1.11.5",l.settings=[],l.models={},l.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0,return:!1},l.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},l.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},l.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(e){try{return JSON.parse((-1===e.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch(e){return{}}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,t){try{(-1===e.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(t))}catch(e){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:e.extend({},l.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},M(l.defaults),l.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},M(l.defaults.column),l.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,jqXHR:null,json:r,oAjaxData:r,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Tt(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Tt(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,t=this._iDisplayStart,n=t+e,r=this.aiDisplay.length,i=this.oFeatures,a=i.bPaginate;return i.bServerSide?!1===a||-1===e?t+r:Math.min(t+e,this._iRecordsDisplay):!a||n>r||-1===e?r:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},l.ext=i={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:l.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:l.version},e.extend(i,{afnFiltering:i.search,aTypes:i.type.detect,ofnSearch:i.type.search,oSort:i.type.order,afnSortData:i.order,aoFeatures:i.feature,oApi:i.internal,oStdClasses:i.classes,oPagination:i.pager}),e.extend(l.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_desc_disabled",sSortableDesc:"sorting_asc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Vt=l.ext.pager;function Xt(e,t){var n=[],r=Vt.numbers_length,i=Math.floor(r/2);return t<=r?n=S(0,t):e<=i?((n=S(0,r-2)).push("ellipsis"),n.push(t-1)):e>=t-1-i?((n=S(t-(r-2),t)).splice(0,0,"ellipsis"),n.splice(0,0,0)):((n=S(e-i+2,e+i-1)).push("ellipsis"),n.push(t-1),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}e.extend(Vt,{simple:function(e,t){return["previous","next"]},full:function(e,t){return["first","previous","next","last"]},numbers:function(e,t){return[Xt(e,t)]},simple_numbers:function(e,t){return["previous",Xt(e,t),"next"]},full_numbers:function(e,t){return["first","previous",Xt(e,t),"next","last"]},first_last_numbers:function(e,t){return["first",Xt(e,t),"last"]},_numbers:Xt,numbers_length:7}),e.extend(!0,l.ext.renderer,{pageButton:{_:function(t,i,a,o,s,l){var c,h,u,d=t.oClasses,f=t.oLanguage.oPaginate,p=t.oLanguage.oAria.paginate||{},g=0,m=function(n,r){var i,o,u,b,v=d.sPageButtonDisabled,y=function(e){Ue(t,e.data.action,!0)};for(i=0,o=r.length;i<o;i++)if(u=r[i],Array.isArray(u)){var x=e("<"+(u.DT_el||"div")+"/>").appendTo(n);m(x,u)}else{switch(c=null,h=u,b=t.iTabIndex,u){case"ellipsis":n.append('<span class="ellipsis">&#x2026;</span>');break;case"first":c=f.sFirst,0===s&&(b=-1,h+=" "+v);break;case"previous":c=f.sPrevious,0===s&&(b=-1,h+=" "+v);break;case"next":c=f.sNext,0!==l&&s!==l-1||(b=-1,h+=" "+v);break;case"last":c=f.sLast,0!==l&&s!==l-1||(b=-1,h+=" "+v);break;default:c=t.fnFormatNumber(u+1),h=s===u?d.sPageButtonActive:""}null!==c&&(bt(e("<a>",{class:d.sPageButton+" "+h,"aria-controls":t.sTableId,"aria-label":p[u],"data-dt-idx":g,tabindex:b,id:0===a&&"string"==typeof u?t.sTableId+"_"+u:null}).html(c).appendTo(n),{action:u},y),g++)}};try{u=e(i).find(n.activeElement).data("dt-idx")}catch(e){}m(e(i).empty(),o),u!==r&&e(i).find("[data-dt-idx="+u+"]").trigger("focus")}}}),e.extend(l.ext.type.detect,[function(e,t){var n=t.oLanguage.sDecimal;return v(e,n)?"num"+n:null},function(e,t){if(e&&!(e instanceof Date)&&!d.test(e))return null;var n=Date.parse(e);return null!==n&&!isNaN(n)||g(e)?"date":null},function(e,t){var n=t.oLanguage.sDecimal;return v(e,n,!0)?"num-fmt"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return x(e,n)?"html-num"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return x(e,n,!0)?"html-num-fmt"+n:null},function(e,t){return g(e)||"string"==typeof e&&-1!==e.indexOf("<")?"html":null}]),e.extend(l.ext.type.search,{html:function(e){return g(e)?e:"string"==typeof e?e.replace(h," ").replace(u,""):""},string:function(e){return g(e)?e:"string"==typeof e?e.replace(h," "):e}});var Gt=function(e,t,n,r){return 0===e||e&&"-"!==e?(t&&(e=b(e,t)),e.replace&&(n&&(e=e.replace(n,"")),r&&(e=e.replace(r,""))),1*e):-1/0};function $t(t){e.each({num:function(e){return Gt(e,t)},"num-fmt":function(e){return Gt(e,t,p)},"html-num":function(e){return Gt(e,t,u)},"html-num-fmt":function(e){return Gt(e,t,u,p)}},(function(e,n){i.type.order[e+t+"-pre"]=n,e.match(/^html\-/)&&(i.type.search[e+t]=i.type.search.html)}))}e.extend(i.type.order,{"date-pre":function(e){var t=Date.parse(e);return isNaN(t)?-1/0:t},"html-pre":function(e){return g(e)?"":e.replace?e.replace(/<.*?>/g,"").toLowerCase():e+""},"string-pre":function(e){return g(e)?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""},"string-asc":function(e,t){return e<t?-1:e>t?1:0},"string-desc":function(e,t){return e<t?1:e>t?-1:0}}),$t(""),e.extend(!0,l.ext.renderer,{header:{_:function(t,n,r,i){e(t.nTable).on("order.dt.DT",(function(e,a,o,s){if(t===a){var l=r.idx;n.removeClass(i.sSortAsc+" "+i.sSortDesc).addClass("asc"==s[l]?i.sSortAsc:"desc"==s[l]?i.sSortDesc:r.sSortingClass)}}))},jqueryui:function(t,n,r,i){e("<div/>").addClass(i.sSortJUIWrapper).append(n.contents()).append(e("<span/>").addClass(i.sSortIcon+" "+r.sSortingClassJUI)).appendTo(n),e(t.nTable).on("order.dt.DT",(function(e,a,o,s){if(t===a){var l=r.idx;n.removeClass(i.sSortAsc+" "+i.sSortDesc).addClass("asc"==s[l]?i.sSortAsc:"desc"==s[l]?i.sSortDesc:r.sSortingClass),n.find("span."+i.sSortIcon).removeClass(i.sSortJUIAsc+" "+i.sSortJUIDesc+" "+i.sSortJUI+" "+i.sSortJUIAscAllowed+" "+i.sSortJUIDescAllowed).addClass("asc"==s[l]?i.sSortJUIAsc:"desc"==s[l]?i.sSortJUIDesc:r.sSortingClassJUI)}}))}}});var Yt=function(e){return Array.isArray(e)&&(e=e.join(",")),"string"==typeof e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):e};function Kt(e){return function(){var t=[ft(this[l.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return l.ext.internal[e].apply(this,t)}}return l.render={number:function(e,t,n,r,i){return{display:function(a){if("number"!=typeof a&&"string"!=typeof a)return a;var o=a<0?"-":"",s=parseFloat(a);if(isNaN(s))return Yt(a);s=s.toFixed(n),a=Math.abs(s);var l=parseInt(a,10),c=n?t+(a-l).toFixed(n).substring(2):"";return 0===l&&0===parseFloat(c)&&(o=""),o+(r||"")+l.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e)+c+(i||"")}}},text:function(){return{display:Yt,filter:Yt}}},e.extend(l.ext.internal,{_fnExternApiFunc:Kt,_fnBuildAjax:ye,_fnAjaxUpdate:xe,_fnAjaxParameters:we,_fnAjaxUpdateDraw:Te,_fnAjaxDataSrc:Se,_fnAddColumn:H,_fnColumnOptions:O,_fnAdjustColumnSizing:B,_fnVisibleToColumnIndex:q,_fnColumnIndexToVisible:W,_fnVisbleColumns:z,_fnGetColumns:U,_fnColumnTypes:V,_fnApplyColumnDefs:X,_fnHungarianMap:M,_fnCamelToHungarian:R,_fnLanguageCompat:P,_fnBrowserDetect:F,_fnAddData:G,_fnAddTr:$,_fnNodeToDataIndex:Y,_fnNodeToColumnIndex:K,_fnGetCellData:Z,_fnSetCellData:J,_fnSplitObjNotation:te,_fnGetObjectDataFn:ne,_fnSetObjectDataFn:re,_fnGetDataMaster:ie,_fnClearTable:ae,_fnDeleteIndex:oe,_fnInvalidate:se,_fnGetRowElements:le,_fnCreateTr:ce,_fnBuildHead:ue,_fnDrawHead:de,_fnDraw:fe,_fnReDraw:pe,_fnAddOptionsHtml:ge,_fnDetectHeader:me,_fnGetUniqueThs:be,_fnFeatureHtmlFilter:Ce,_fnFilterComplete:Ee,_fnFilterCustom:De,_fnFilterColumn:_e,_fnFilter:ke,_fnFilterCreateSearch:Ae,_fnEscapeRegex:Me,_fnFilterData:Le,_fnFeatureHtmlInfo:Fe,_fnUpdateInfo:Ne,_fnInfoMacros:He,_fnInitialise:Oe,_fnInitComplete:Be,_fnLengthChange:qe,_fnFeatureHtmlLength:We,_fnFeatureHtmlPaginate:ze,_fnPageChange:Ue,_fnFeatureHtmlProcessing:Ve,_fnProcessingDisplay:Xe,_fnFeatureHtmlTable:Ge,_fnScrollDraw:$e,_fnApplyToChildren:Ye,_fnCalculateColumnWidths:Ze,_fnThrottle:Je,_fnConvertToWidth:Qe,_fnGetWidestNode:et,_fnGetMaxLenString:tt,_fnStringToCss:nt,_fnSortFlatten:rt,_fnSort:it,_fnSortAria:at,_fnSortListener:ot,_fnSortAttachListener:st,_fnSortingClasses:lt,_fnSortData:ct,_fnSaveState:ht,_fnLoadState:ut,_fnImplementState:dt,_fnSettingsFromNode:ft,_fnLog:pt,_fnMap:gt,_fnBindAction:bt,_fnCallbackReg:vt,_fnCallbackFire:yt,_fnLengthOverflow:xt,_fnRenderer:wt,_fnDataSource:Tt,_fnRowAttributes:he,_fnExtend:mt,_fnCalculateEnd:function(){}}),e.fn.dataTable=l,l.$=e,e.fn.dataTableSettings=l.settings,e.fn.dataTableExt=l.ext,e.fn.DataTable=function(t){return e(this).dataTable(t).api()},e.each(l,(function(t,n){e.fn.DataTable[t]=n})),l}(e,window,document)}.apply(t,r),void 0===i||(e.exports=i)}()},187:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}g(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(e,"error",t,n)}(e,i,{once:!0})}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var o=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,a,o;if(s(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),void 0===o)o=a[t]=n,++e._eventsCount;else if("function"==typeof o?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=l(e))>0&&o.length>i&&!o.warned){o.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=o.length,console&&console.warn}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):p(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function g(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(a){r.once&&e.removeEventListener(t,i),n(a)}))}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return l(this)},a.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,a=this._events;if(void 0!==a)i=i&&void 0===a.error;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var c=l.length,h=p(l,c);for(n=0;n<c;++n)r(h[n],this,t)}return!0},a.prototype.addListener=function(e,t){return c(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return c(this,e,t,!0)},a.prototype.once=function(e,t){return s(t),this.on(e,u(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,u(this,e,t)),this},a.prototype.removeListener=function(e,t){var n,r,i,a,o;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},a.prototype.listeners=function(e){return d(this,e,!0)},a.prototype.rawListeners=function(e){return d(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},a.prototype.listenerCount=f,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},171:e=>{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},755:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(r,i){"use strict";var a=[],o=Object.getPrototypeOf,s=a.slice,l=a.flat?function(e){return a.flat.call(e)}:function(e){return a.concat.apply([],e)},c=a.push,h=a.indexOf,u={},d=u.toString,f=u.hasOwnProperty,p=f.toString,g=p.call(Object),m={},b=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},v=function(e){return null!=e&&e===e.window},y=r.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,i,a=(n=n||y).createElement("script");if(a.text=e,t)for(r in x)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&a.setAttribute(r,i);n.head.appendChild(a).parentNode.removeChild(a)}function T(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[d.call(e)]||"object":typeof e}var S="3.6.0",C=function(e,t){return new C.fn.init(e,t)};function E(e){var t=!!e&&"length"in e&&e.length,n=T(e);return!b(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}C.fn=C.prototype={jquery:S,constructor:C,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return C.each(this,e)},map:function(e){return this.pushStack(C.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(C.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(C.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:a.sort,splice:a.splice},C.extend=C.fn.extend=function(){var e,t,n,r,i,a,o=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[s]||{},s++),"object"==typeof o||b(o)||(o={}),s===l&&(o=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&o!==r&&(c&&r&&(C.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[t],a=i&&!Array.isArray(n)?[]:i||C.isPlainObject(n)?n:{},i=!1,o[t]=C.extend(c,a,r)):void 0!==r&&(o[t]=r));return o},C.extend({expando:"jQuery"+(S+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==d.call(e))&&(!(t=o(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&p.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(E(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(E(Object(e))?C.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:h.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,a=e.length,o=!n;i<a;i++)!t(e[i],i)!==o&&r.push(e[i]);return r},map:function(e,t,n){var r,i,a=0,o=[];if(E(e))for(r=e.length;a<r;a++)null!=(i=t(e[a],a,n))&&o.push(i);else for(a in e)null!=(i=t(e[a],a,n))&&o.push(i);return l(o)},guid:1,support:m}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=a[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){u["[object "+t+"]"]=t.toLowerCase()}));var D=function(e){var t,n,r,i,a,o,s,l,c,h,u,d,f,p,g,m,b,v,y,x="sizzle"+1*new Date,w=e.document,T=0,S=0,C=le(),E=le(),D=le(),_=le(),k=function(e,t){return e===t&&(u=!0),0},A={}.hasOwnProperty,M=[],R=M.pop,P=M.push,L=M.push,I=M.slice,j=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="[\\x20\\t\\r\\n\\f]",H="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",O="\\[[\\x20\\t\\r\\n\\f]*("+H+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+H+"))|)"+N+"*\\]",B=":("+H+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",q=new RegExp(N+"+","g"),W=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),z=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),U=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),V=new RegExp(N+"|>"),X=new RegExp(B),G=new RegExp("^"+H+"$"),$={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=function(){d()},oe=xe((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{L.apply(M=I.call(w.childNodes),w.childNodes),M[w.childNodes.length].nodeType}catch(e){L={apply:M.length?function(e,t){P.apply(e,I.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var a,s,c,h,u,p,b,v=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!i&&(d(t),t=t||f,g)){if(11!==w&&(u=Q.exec(e)))if(a=u[1]){if(9===w){if(!(c=t.getElementById(a)))return r;if(c.id===a)return r.push(c),r}else if(v&&(c=v.getElementById(a))&&y(t,c)&&c.id===a)return r.push(c),r}else{if(u[2])return L.apply(r,t.getElementsByTagName(e)),r;if((a=u[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&!_[e+" "]&&(!m||!m.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(b=e,v=t,1===w&&(V.test(e)||U.test(e))){for((v=ee.test(e)&&be(t.parentNode)||t)===t&&n.scope||((h=t.getAttribute("id"))?h=h.replace(re,ie):t.setAttribute("id",h=x)),s=(p=o(e)).length;s--;)p[s]=(h?"#"+h:":scope")+" "+ye(p[s]);b=p.join(",")}try{return L.apply(r,v.querySelectorAll(b)),r}catch(t){_(e,!0)}finally{h===x&&t.removeAttribute("id")}}}return l(e.replace(W,"$1"),t,r,i)}function le(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ce(e){return e[x]=!0,e}function he(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ce((function(t){return t=+t,ce((function(n,r){for(var i,a=e([],n.length,t),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))}))}))}function be(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},a=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},d=se.setDocument=function(e){var t,i,o=e?e.ownerDocument||e:w;return o!=f&&9===o.nodeType&&o.documentElement?(p=(f=o).documentElement,g=!a(f),w!=f&&(i=f.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ae,!1):i.attachEvent&&i.attachEvent("onunload",ae)),n.scope=he((function(e){return p.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=he((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=he((function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(f.getElementsByClassName),n.getById=he((function(e){return p.appendChild(e).id=x,!f.getElementsByName||!f.getElementsByName(x).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(i=t.getElementsByName(e),r=0;a=i[r++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[i++];)1===n.nodeType&&r.push(n);return r}return a},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},b=[],m=[],(n.qsa=J.test(f.querySelectorAll))&&(he((function(e){var t;p.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+F+")"),e.querySelectorAll("[id~="+x+"-]").length||m.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),he((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=J.test(v=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&he((function(e){n.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),b.push("!=",B)})),m=m.length&&new RegExp(m.join("|")),b=b.length&&new RegExp(b.join("|")),t=J.test(p.compareDocumentPosition),y=t||J.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},k=t?function(e,t){if(e===t)return u=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==f||e.ownerDocument==w&&y(w,e)?-1:t==f||t.ownerDocument==w&&y(w,t)?1:h?j(h,e)-j(h,t):0:4&r?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,r=0,i=e.parentNode,a=t.parentNode,o=[e],s=[t];if(!i||!a)return e==f?-1:t==f?1:i?-1:a?1:h?j(h,e)-j(h,t):0;if(i===a)return de(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[r]===s[r];)r++;return r?de(o[r],s[r]):o[r]==w?-1:s[r]==w?1:0},f):f},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&g&&!_[t+" "]&&(!b||!b.test(t))&&(!m||!m.test(t)))try{var r=v.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){_(t,!0)}return se(t,f,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=f&&d(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=f&&d(e);var i=r.attrHandle[t.toLowerCase()],a=i&&A.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==a?a:n.attributes||!g?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,a=0;if(u=!n.detectDuplicates,h=!n.sortStable&&e.slice(0),e.sort(k),u){for(;t=e[a++];)t===e[a]&&(i=r.push(a));for(;i--;)e.splice(r[i],1)}return h=null,e},i=se.getText=function(e){var t,n="",r=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},r=se.selectors={cacheLength:50,createPseudo:ce,match:$,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return $.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+N+"|$)"))&&C(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(q," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,h,u,d,f,p,g=a!==o?"nextSibling":"previousSibling",m=t.parentNode,b=s&&t.nodeName.toLowerCase(),v=!l&&!s,y=!1;if(m){if(a){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===b:1===d.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[o?m.firstChild:m.lastChild],o&&v){for(y=(f=(c=(h=(u=(d=m)[x]||(d[x]={}))[d.uniqueID]||(u[d.uniqueID]={}))[e]||[])[0]===T&&c[1])&&c[2],d=f&&m.childNodes[f];d=++f&&d&&d[g]||(y=f=0)||p.pop();)if(1===d.nodeType&&++y&&d===t){h[e]=[T,f,y];break}}else if(v&&(y=f=(c=(h=(u=(d=t)[x]||(d[x]={}))[d.uniqueID]||(u[d.uniqueID]={}))[e]||[])[0]===T&&c[1]),!1===y)for(;(d=++f&&d&&d[g]||(y=f=0)||p.pop())&&((s?d.nodeName.toLowerCase()!==b:1!==d.nodeType)||!++y||(v&&((h=(u=d[x]||(d[x]={}))[d.uniqueID]||(u[d.uniqueID]={}))[e]=[T,y]),d!==t)););return(y-=i)===r||y%r==0&&y/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[x]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var r,a=i(e,t),o=a.length;o--;)e[r=j(e,a[o])]=!(n[r]=a[o])})):function(e){return i(e,0,n)}):i}},pseudos:{not:ce((function(e){var t=[],n=[],r=s(e.replace(W,"$1"));return r[x]?ce((function(e,t,n,i){for(var a,o=r(e,null,i,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))})):function(e,i,a){return t[0]=e,r(t,null,a,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return se(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:ce((function(e){return G.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,n){return[n<0?n+t:n]})),even:me((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:me((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:me((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:me((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function ve(){}function ye(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function xe(e,t,n){var r=t.dir,i=t.next,a=i||r,o=n&&"parentNode"===a,s=S++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i);return!1}:function(t,n,l){var c,h,u,d=[T,s];if(l){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(h=(u=t[x]||(t[x]={}))[t.uniqueID]||(u[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=h[a])&&c[0]===T&&c[1]===s)return d[2]=c[2];if(h[a]=d,d[2]=e(t,n,l))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Te(e,t,n,r,i){for(var a,o=[],s=0,l=e.length,c=null!=t;s<l;s++)(a=e[s])&&(n&&!n(a,r,i)||(o.push(a),c&&t.push(s)));return o}function Se(e,t,n,r,i,a){return r&&!r[x]&&(r=Se(r)),i&&!i[x]&&(i=Se(i,a)),ce((function(a,o,s,l){var c,h,u,d=[],f=[],p=o.length,g=a||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!a&&t?g:Te(g,d,e,s,l),b=n?i||(a?e:p||r)?[]:o:m;if(n&&n(m,b,s,l),r)for(c=Te(b,f),r(c,[],s,l),h=c.length;h--;)(u=c[h])&&(b[f[h]]=!(m[f[h]]=u));if(a){if(i||e){if(i){for(c=[],h=b.length;h--;)(u=b[h])&&c.push(m[h]=u);i(null,b=[],c,l)}for(h=b.length;h--;)(u=b[h])&&(c=i?j(a,u):d[h])>-1&&(a[c]=!(o[c]=u))}}else b=Te(b===o?b.splice(p,b.length):b),i?i(null,o,b,l):L.apply(o,b)}))}function Ce(e){for(var t,n,i,a=e.length,o=r.relative[e[0].type],s=o||r.relative[" "],l=o?1:0,h=xe((function(e){return e===t}),s,!0),u=xe((function(e){return j(t,e)>-1}),s,!0),d=[function(e,n,r){var i=!o&&(r||n!==c)||((t=n).nodeType?h(e,n,r):u(e,n,r));return t=null,i}];l<a;l++)if(n=r.relative[e[l].type])d=[xe(we(d),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[x]){for(i=++l;i<a&&!r.relative[e[i].type];i++);return Se(l>1&&we(d),l>1&&ye(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(W,"$1"),n,l<i&&Ce(e.slice(l,i)),i<a&&Ce(e=e.slice(i)),i<a&&ye(e))}d.push(n)}return we(d)}return ve.prototype=r.filters=r.pseudos,r.setFilters=new ve,o=se.tokenize=function(e,t){var n,i,a,o,s,l,c,h=E[e+" "];if(h)return t?0:h.slice(0);for(s=e,l=[],c=r.preFilter;s;){for(o in n&&!(i=z.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(a=[])),n=!1,(i=U.exec(s))&&(n=i.shift(),a.push({value:n,type:i[0].replace(W," ")}),s=s.slice(n.length)),r.filter)!(i=$[o].exec(s))||c[o]&&!(i=c[o](i))||(n=i.shift(),a.push({value:n,type:o,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):E(e,l).slice(0)},s=se.compile=function(e,t){var n,i=[],a=[],s=D[e+" "];if(!s){for(t||(t=o(e)),n=t.length;n--;)(s=Ce(t[n]))[x]?i.push(s):a.push(s);s=D(e,function(e,t){var n=t.length>0,i=e.length>0,a=function(a,o,s,l,h){var u,p,m,b=0,v="0",y=a&&[],x=[],w=c,S=a||i&&r.find.TAG("*",h),C=T+=null==w?1:Math.random()||.1,E=S.length;for(h&&(c=o==f||o||h);v!==E&&null!=(u=S[v]);v++){if(i&&u){for(p=0,o||u.ownerDocument==f||(d(u),s=!g);m=e[p++];)if(m(u,o||f,s)){l.push(u);break}h&&(T=C)}n&&((u=!m&&u)&&b--,a&&y.push(u))}if(b+=v,n&&v!==b){for(p=0;m=t[p++];)m(y,x,o,s);if(a){if(b>0)for(;v--;)y[v]||x[v]||(x[v]=R.call(l));x=Te(x)}L.apply(l,x),h&&!a&&x.length>0&&b+t.length>1&&se.uniqueSort(l)}return h&&(T=C,c=w),y};return n?ce(a):a}(a,i)),s.selector=e}return s},l=se.select=function(e,t,n,i){var a,l,c,h,u,d="function"==typeof e&&e,f=!i&&o(e=d.selector||e);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&g&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(a=$.needsContext.test(e)?0:l.length;a--&&(c=l[a],!r.relative[h=c.type]);)if((u=r.find[h])&&(i=u(c.matches[0].replace(te,ne),ee.test(l[0].type)&&be(t.parentNode)||t))){if(l.splice(a,1),!(e=i.length&&ye(l)))return L.apply(n,i),n;break}}return(d||s(e,f))(i,t,!g,n,!t||ee.test(e)&&be(t.parentNode)||t),n},n.sortStable=x.split("").sort(k).join("")===x,n.detectDuplicates=!!u,d(),n.sortDetached=he((function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))})),he((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||ue("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&he((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||ue("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),he((function(e){return null==e.getAttribute("disabled")}))||ue(F,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(r);C.find=D,C.expr=D.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=D.uniqueSort,C.text=D.getText,C.isXMLDoc=D.isXML,C.contains=D.contains,C.escapeSelector=D.escape;var _=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&C(e).is(n))break;r.push(e)}return r},k=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},A=C.expr.match.needsContext;function M(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var R=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(e,t,n){return b(t)?C.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?C.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?C.grep(e,(function(e){return h.call(t,e)>-1!==n})):C.filter(t,e,n)}C.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?C.find.matchesSelector(r,e)?[r]:[]:C.find.matches(e,C.grep(t,(function(e){return 1===e.nodeType})))},C.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(C(e).filter((function(){for(t=0;t<r;t++)if(C.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)C.find(e,i[t],n);return r>1?C.uniqueSort(n):n},filter:function(e){return this.pushStack(P(this,e||[],!1))},not:function(e){return this.pushStack(P(this,e||[],!0))},is:function(e){return!!P(this,"string"==typeof e&&A.test(e)?C(e):e||[],!1).length}});var L,I=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||L,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:I.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),R.test(r[1])&&C.isPlainObject(t))for(r in t)b(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=y.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this)}).prototype=C.fn,L=C(y);var j=/^(?:parents|prev(?:Until|All))/,F={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(C.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,a=[],o="string"!=typeof e&&C(e);if(!A.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&C.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?C.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?h.call(C(e),this[0]):h.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return _(e,"parentNode")},parentsUntil:function(e,t,n){return _(e,"parentNode",n)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return _(e,"nextSibling")},prevAll:function(e){return _(e,"previousSibling")},nextUntil:function(e,t,n){return _(e,"nextSibling",n)},prevUntil:function(e,t,n){return _(e,"previousSibling",n)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return null!=e.contentDocument&&o(e.contentDocument)?e.contentDocument:(M(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},(function(e,t){C.fn[e]=function(n,r){var i=C.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=C.filter(r,i)),this.length>1&&(F[e]||C.uniqueSort(i),j.test(e)&&i.reverse()),this.pushStack(i)}}));var H=/[^\x20\t\r\n\f]+/g;function O(e){return e}function B(e){throw e}function q(e,t,n,r){var i;try{e&&b(i=e.promise)?i.call(e).done(t).fail(n):e&&b(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}C.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return C.each(e.match(H)||[],(function(e,n){t[n]=!0})),t}(e):C.extend({},e);var t,n,r,i,a=[],o=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;o.length;s=-1)for(n=o.shift();++s<a.length;)!1===a[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=a.length,n=!1);e.memory||(n=!1),t=!1,i&&(a=n?[]:"")},c={add:function(){return a&&(n&&!t&&(s=a.length-1,o.push(n)),function t(n){C.each(n,(function(n,r){b(r)?e.unique&&c.has(r)||a.push(r):r&&r.length&&"string"!==T(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return C.each(arguments,(function(e,t){for(var n;(n=C.inArray(t,a,n))>-1;)a.splice(n,1),n<=s&&s--})),this},has:function(e){return e?C.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=o=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=o=[],n||t||(a=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},C.extend({Deferred:function(e){var t=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return C.Deferred((function(n){C.each(t,(function(t,r){var i=b(e[r[4]])&&e[r[4]];a[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&b(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,i){var a=0;function o(e,t,n,i){return function(){var s=this,l=arguments,c=function(){var r,c;if(!(e<a)){if((r=n.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=r&&("object"==typeof r||"function"==typeof r)&&r.then,b(c)?i?c.call(r,o(a,t,O,i),o(a,t,B,i)):(a++,c.call(r,o(a,t,O,i),o(a,t,B,i),o(a,t,O,t.notifyWith))):(n!==O&&(s=void 0,l=[r]),(i||t.resolveWith)(s,l))}},h=i?c:function(){try{c()}catch(r){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(r,h.stackTrace),e+1>=a&&(n!==B&&(s=void 0,l=[r]),t.rejectWith(s,l))}};e?h():(C.Deferred.getStackHook&&(h.stackTrace=C.Deferred.getStackHook()),r.setTimeout(h))}}return C.Deferred((function(r){t[0][3].add(o(0,r,b(i)?i:O,r.notifyWith)),t[1][3].add(o(0,r,b(e)?e:O)),t[2][3].add(o(0,r,b(n)?n:B))})).promise()},promise:function(e){return null!=e?C.extend(e,i):i}},a={};return C.each(t,(function(e,r){var o=r[2],s=r[5];i[r[1]]=o.add,s&&o.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(r[3].fire),a[r[0]]=function(){return a[r[0]+"With"](this===a?void 0:this,arguments),this},a[r[0]+"With"]=o.fireWith})),i.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),a=C.Deferred(),o=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||a.resolveWith(r,i)}};if(t<=1&&(q(e,a.done(o(n)).resolve,a.reject,!t),"pending"===a.state()||b(i[n]&&i[n].then)))return a.then();for(;n--;)q(i[n],o(n),a.reject);return a.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&W.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){r.setTimeout((function(){throw e}))};var z=C.Deferred();function U(){y.removeEventListener("DOMContentLoaded",U),r.removeEventListener("load",U),C.ready()}C.fn.ready=function(e){return z.then(e).catch((function(e){C.readyException(e)})),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==e&&--C.readyWait>0||z.resolveWith(y,[C]))}}),C.ready.then=z.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?r.setTimeout(C.ready):(y.addEventListener("DOMContentLoaded",U),r.addEventListener("load",U));var V=function(e,t,n,r,i,a,o){var s=0,l=e.length,c=null==n;if("object"===T(n))for(s in i=!0,n)V(e,t,s,n[s],!0,a,o);else if(void 0!==r&&(i=!0,b(r)||(o=!0),c&&(o?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(C(e),n)})),t))for(;s<l;s++)t(e[s],n,o?r:r.call(e[s],s,t(e[s],n)));return i?e:c?t.call(e):l?t(e[0],n):a},X=/^-ms-/,G=/-([a-z])/g;function $(e,t){return t.toUpperCase()}function Y(e){return e.replace(X,"ms-").replace(G,$)}var K=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Z(){this.expando=C.expando+Z.uid++}Z.uid=1,Z.prototype={cache:function(e){var t=e[this.expando];return t||(t={},K(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[Y(t)]=n;else for(r in t)i[Y(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][Y(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(Y):(t=Y(t))in r?[t]:t.match(H)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||C.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!C.isEmptyObject(t)}};var J=new Z,Q=new Z,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}C.extend({hasData:function(e){return Q.hasData(e)||J.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return J.access(e,t,n)},_removeData:function(e,t){J.remove(e,t)}}),C.fn.extend({data:function(e,t){var n,r,i,a=this[0],o=a&&a.attributes;if(void 0===e){if(this.length&&(i=Q.get(a),1===a.nodeType&&!J.get(a,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=Y(r.slice(5)),ne(a,r,i[r]));J.set(a,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){Q.set(this,e)})):V(this,(function(t){var n;if(a&&void 0===t)return void 0!==(n=Q.get(a,e))||void 0!==(n=ne(a,e))?n:void 0;this.each((function(){Q.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Q.remove(this,e)}))}}),C.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=J.get(e,t),n&&(!r||Array.isArray(n)?r=J.access(e,t,C.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=C.queue(e,t),r=n.length,i=n.shift(),a=C._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete a.stop,i.call(e,(function(){C.dequeue(e,t)}),a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:C.Callbacks("once memory").add((function(){J.remove(e,[t+"queue",n])}))})}}),C.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?C.queue(this[0],e):void 0===t?this:this.each((function(){var n=C.queue(this,e,t);C._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&C.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){C.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=C.Deferred(),a=this,o=this.length,s=function(){--r||i.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=J.get(a[o],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ie=new RegExp("^(?:([+-])=|)("+re+")([a-z%]*)$","i"),ae=["Top","Right","Bottom","Left"],oe=y.documentElement,se=function(e){return C.contains(e.ownerDocument,e)},le={composed:!0};oe.getRootNode&&(se=function(e){return C.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===C.css(e,"display")};function he(e,t,n,r){var i,a,o=20,s=r?function(){return r.cur()}:function(){return C.css(e,t,"")},l=s(),c=n&&n[3]||(C.cssNumber[t]?"":"px"),h=e.nodeType&&(C.cssNumber[t]||"px"!==c&&+l)&&ie.exec(C.css(e,t));if(h&&h[3]!==c){for(l/=2,c=c||h[3],h=+l||1;o--;)C.style(e,t,h+c),(1-a)*(1-(a=s()/l||.5))<=0&&(o=0),h/=a;h*=2,C.style(e,t,h+c),n=n||[]}return n&&(h=+h||+l||0,i=n[1]?h+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=h,r.end=i)),i}var ue={};function de(e){var t,n=e.ownerDocument,r=e.nodeName,i=ue[r];return i||(t=n.body.appendChild(n.createElement(r)),i=C.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),ue[r]=i,i)}function fe(e,t){for(var n,r,i=[],a=0,o=e.length;a<o;a++)(r=e[a]).style&&(n=r.style.display,t?("none"===n&&(i[a]=J.get(r,"display")||null,i[a]||(r.style.display="")),""===r.style.display&&ce(r)&&(i[a]=de(r))):"none"!==n&&(i[a]="none",J.set(r,"display",n)));for(a=0;a<o;a++)null!=i[a]&&(e[a].style.display=i[a]);return e}C.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ce(this)?C(this).show():C(this).hide()}))}});var pe,ge,me=/^(?:checkbox|radio)$/i,be=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i;pe=y.createDocumentFragment().appendChild(y.createElement("div")),(ge=y.createElement("input")).setAttribute("type","radio"),ge.setAttribute("checked","checked"),ge.setAttribute("name","t"),pe.appendChild(ge),m.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="<option></option>",m.option=!!pe.lastChild;var ye={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function xe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&M(e,t)?C.merge([e],n):n}function we(e,t){for(var n=0,r=e.length;n<r;n++)J.set(e[n],"globalEval",!t||J.get(t[n],"globalEval"))}ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td,m.option||(ye.optgroup=ye.option=[1,"<select multiple='multiple'>","</select>"]);var Te=/<|&#?\w+;/;function Se(e,t,n,r,i){for(var a,o,s,l,c,h,u=t.createDocumentFragment(),d=[],f=0,p=e.length;f<p;f++)if((a=e[f])||0===a)if("object"===T(a))C.merge(d,a.nodeType?[a]:a);else if(Te.test(a)){for(o=o||u.appendChild(t.createElement("div")),s=(be.exec(a)||["",""])[1].toLowerCase(),l=ye[s]||ye._default,o.innerHTML=l[1]+C.htmlPrefilter(a)+l[2],h=l[0];h--;)o=o.lastChild;C.merge(d,o.childNodes),(o=u.firstChild).textContent=""}else d.push(t.createTextNode(a));for(u.textContent="",f=0;a=d[f++];)if(r&&C.inArray(a,r)>-1)i&&i.push(a);else if(c=se(a),o=xe(u.appendChild(a),"script"),c&&we(o),n)for(h=0;a=o[h++];)ve.test(a.type||"")&&n.push(a);return u}var Ce=/^([^.]*)(?:\.(.+)|)/;function Ee(){return!0}function De(){return!1}function _e(e,t){return e===function(){try{return y.activeElement}catch(e){}}()==("focus"===t)}function ke(e,t,n,r,i,a){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)ke(e,s,n,r,t[s],a);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=De;else if(!i)return e;return 1===a&&(o=i,i=function(e){return C().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=C.guid++)),e.each((function(){C.event.add(this,t,i,r,n)}))}function Ae(e,t,n){n?(J.set(e,t,!1),C.event.add(e,t,{namespace:!1,handler:function(e){var r,i,a=J.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(C.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=s.call(arguments),J.set(this,t,a),r=n(this,t),this[t](),a!==(i=J.get(this,t))||r?J.set(this,t,!1):i={},a!==i)return e.stopImmediatePropagation(),e.preventDefault(),i&&i.value}else a.length&&(J.set(this,t,{value:C.event.trigger(C.extend(a[0],C.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,t)&&C.event.add(e,t,Ee)}C.event={global:{},add:function(e,t,n,r,i){var a,o,s,l,c,h,u,d,f,p,g,m=J.get(e);if(K(e))for(n.handler&&(n=(a=n).handler,i=a.selector),i&&C.find.matchesSelector(oe,i),n.guid||(n.guid=C.guid++),(l=m.events)||(l=m.events=Object.create(null)),(o=m.handle)||(o=m.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(H)||[""]).length;c--;)f=g=(s=Ce.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f&&(u=C.event.special[f]||{},f=(i?u.delegateType:u.bindType)||f,u=C.event.special[f]||{},h=C.extend({type:f,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&C.expr.match.needsContext.test(i),namespace:p.join(".")},a),(d=l[f])||((d=l[f]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,r,p,o)||e.addEventListener&&e.addEventListener(f,o)),u.add&&(u.add.call(e,h),h.handler.guid||(h.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,h):d.push(h),C.event.global[f]=!0)},remove:function(e,t,n,r,i){var a,o,s,l,c,h,u,d,f,p,g,m=J.hasData(e)&&J.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(H)||[""]).length;c--;)if(f=g=(s=Ce.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f){for(u=C.event.special[f]||{},d=l[f=(r?u.delegateType:u.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=d.length;a--;)h=d[a],!i&&g!==h.origType||n&&n.guid!==h.guid||s&&!s.test(h.namespace)||r&&r!==h.selector&&("**"!==r||!h.selector)||(d.splice(a,1),h.selector&&d.delegateCount--,u.remove&&u.remove.call(e,h));o&&!d.length&&(u.teardown&&!1!==u.teardown.call(e,p,m.handle)||C.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)C.event.remove(e,f+t[c],n,r,!0);C.isEmptyObject(l)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,a,o,s=new Array(arguments.length),l=C.event.fix(e),c=(J.get(this,"events")||Object.create(null))[l.type]||[],h=C.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!h.preDispatch||!1!==h.preDispatch.call(this,l)){for(o=C.event.handlers.call(this,l,c),t=0;(i=o[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==a.namespace&&!l.rnamespace.test(a.namespace)||(l.handleObj=a,l.data=a.data,void 0!==(r=((C.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,a,o,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(a=[],o={},n=0;n<l;n++)void 0===o[i=(r=t[n]).selector+" "]&&(o[i]=r.needsContext?C(i,this).index(c)>-1:C.find(i,this,null,[c]).length),o[i]&&a.push(r);a.length&&s.push({elem:c,handlers:a})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(C.Event.prototype,e,{enumerable:!0,configurable:!0,get:b(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[C.expando]?e:new C.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&M(t,"input")&&Ae(t,"click",Ee),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&M(t,"input")&&Ae(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&M(t,"input")&&J.get(t,"click")||M(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},C.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},C.Event=function(e,t){if(!(this instanceof C.Event))return new C.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ee:De,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&C.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:De,isPropagationStopped:De,isImmediatePropagationStopped:De,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ee,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ee,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ee,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},C.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},(function(e,t){C.event.special[e]={setup:function(){return Ae(this,e,_e),!1},trigger:function(){return Ae(this,e),!0},_default:function(){return!0},delegateType:t}})),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){C.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,a=e.handleObj;return i&&(i===r||C.contains(r,i))||(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}})),C.fn.extend({on:function(e,t,n,r){return ke(this,e,t,n,r)},one:function(e,t,n,r){return ke(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,C(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=De),this.each((function(){C.event.remove(this,e,n,t)}))}});var Me=/<script|<style|<link/i,Re=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Le(e,t){return M(e,"table")&&M(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function je(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,a,o,s;if(1===t.nodeType){if(J.hasData(e)&&(s=J.get(e).events))for(i in J.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)C.event.add(t,i,s[i][n]);Q.hasData(e)&&(a=Q.access(e),o=C.extend({},a),Q.set(t,o))}}function Ne(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function He(e,t,n,r){t=l(t);var i,a,o,s,c,h,u=0,d=e.length,f=d-1,p=t[0],g=b(p);if(g||d>1&&"string"==typeof p&&!m.checkClone&&Re.test(p))return e.each((function(i){var a=e.eq(i);g&&(t[0]=p.call(this,i,a.html())),He(a,t,n,r)}));if(d&&(a=(i=Se(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=a),a||r)){for(s=(o=C.map(xe(i,"script"),Ie)).length;u<d;u++)c=i,u!==f&&(c=C.clone(c,!0,!0),s&&C.merge(o,xe(c,"script"))),n.call(e[u],c,u);if(s)for(h=o[o.length-1].ownerDocument,C.map(o,je),u=0;u<s;u++)c=o[u],ve.test(c.type||"")&&!J.access(c,"globalEval")&&C.contains(h,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?C._evalUrl&&!c.noModule&&C._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},h):w(c.textContent.replace(Pe,""),c,h))}return e}function Oe(e,t,n){for(var r,i=t?C.filter(t,e):e,a=0;null!=(r=i[a]);a++)n||1!==r.nodeType||C.cleanData(xe(r)),r.parentNode&&(n&&se(r)&&we(xe(r,"script")),r.parentNode.removeChild(r));return e}C.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,a,o,s=e.cloneNode(!0),l=se(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(o=xe(s),r=0,i=(a=xe(e)).length;r<i;r++)Ne(a[r],o[r]);if(t)if(n)for(a=a||xe(e),o=o||xe(s),r=0,i=a.length;r<i;r++)Fe(a[r],o[r]);else Fe(e,s);return(o=xe(s,"script")).length>0&&we(o,!l&&xe(e,"script")),s},cleanData:function(e){for(var t,n,r,i=C.event.special,a=0;void 0!==(n=e[a]);a++)if(K(n)){if(t=n[J.expando]){if(t.events)for(r in t.events)i[r]?C.event.remove(n,r):C.removeEvent(n,r,t.handle);n[J.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),C.fn.extend({detach:function(e){return Oe(this,e,!0)},remove:function(e){return Oe(this,e)},text:function(e){return V(this,(function(e){return void 0===e?C.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return He(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Le(this,e).appendChild(e)}))},prepend:function(){return He(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Le(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return He(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return He(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(C.cleanData(xe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return C.clone(this,e,t)}))},html:function(e){return V(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Me.test(e)&&!ye[(be.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(C.cleanData(xe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return He(this,arguments,(function(t){var n=this.parentNode;C.inArray(this,e)<0&&(C.cleanData(xe(this)),n&&n.replaceChild(t,this))}),e)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){C.fn[e]=function(e){for(var n,r=[],i=C(e),a=i.length-1,o=0;o<=a;o++)n=o===a?this:this.clone(!0),C(i[o])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var Be=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),qe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},We=function(e,t,n){var r,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=a[i];return r},ze=new RegExp(ae.join("|"),"i");function Ue(e,t,n){var r,i,a,o,s=e.style;return(n=n||qe(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||se(e)||(o=C.style(e,t)),!m.pixelBoxStyles()&&Be.test(o)&&ze.test(t)&&(r=s.width,i=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=r,s.minWidth=i,s.maxWidth=a)),void 0!==o?o+"":o}function Ve(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(h){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",h.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",oe.appendChild(c).appendChild(h);var e=r.getComputedStyle(h);n="1%"!==e.top,l=12===t(e.marginLeft),h.style.right="60%",o=36===t(e.right),i=36===t(e.width),h.style.position="absolute",a=12===t(h.offsetWidth/3),oe.removeChild(c),h=null}}function t(e){return Math.round(parseFloat(e))}var n,i,a,o,s,l,c=y.createElement("div"),h=y.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===h.style.backgroundClip,C.extend(m,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),a},reliableTrDimensions:function(){var e,t,n,i;return null==s&&(e=y.createElement("table"),t=y.createElement("tr"),n=y.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",oe.appendChild(e).appendChild(t).appendChild(n),i=r.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,oe.removeChild(e)),s}}))}();var Xe=["Webkit","Moz","ms"],Ge=y.createElement("div").style,$e={};function Ye(e){var t=C.cssProps[e]||$e[e];return t||(e in Ge?e:$e[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Xe.length;n--;)if((e=Xe[n]+t)in Ge)return e}(e)||e)}var Ke=/^(none|table(?!-c[ea]).+)/,Ze=/^--/,Je={position:"absolute",visibility:"hidden",display:"block"},Qe={letterSpacing:"0",fontWeight:"400"};function et(e,t,n){var r=ie.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function tt(e,t,n,r,i,a){var o="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=C.css(e,n+ae[o],!0,i)),r?("content"===n&&(l-=C.css(e,"padding"+ae[o],!0,i)),"margin"!==n&&(l-=C.css(e,"border"+ae[o]+"Width",!0,i))):(l+=C.css(e,"padding"+ae[o],!0,i),"padding"!==n?l+=C.css(e,"border"+ae[o]+"Width",!0,i):s+=C.css(e,"border"+ae[o]+"Width",!0,i));return!r&&a>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-s-.5))||0),l}function nt(e,t,n){var r=qe(e),i=(!m.boxSizingReliable()||n)&&"border-box"===C.css(e,"boxSizing",!1,r),a=i,o=Ue(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Be.test(o)){if(!n)return o;o="auto"}return(!m.boxSizingReliable()&&i||!m.reliableTrDimensions()&&M(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===C.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===C.css(e,"boxSizing",!1,r),(a=s in e)&&(o=e[s])),(o=parseFloat(o)||0)+tt(e,t,n||(i?"border":"content"),a,r,o)+"px"}function rt(e,t,n,r,i){return new rt.prototype.init(e,t,n,r,i)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ue(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,a,o,s=Y(t),l=Ze.test(t),c=e.style;if(l||(t=Ye(s)),o=C.cssHooks[t]||C.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(e,!1,r))?i:c[t];"string"===(a=typeof n)&&(i=ie.exec(n))&&i[1]&&(n=he(e,t,i),a="number"),null!=n&&n==n&&("number"!==a||l||(n+=i&&i[3]||(C.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,a,o,s=Y(t);return Ze.test(t)||(t=Ye(s)),(o=C.cssHooks[t]||C.cssHooks[s])&&"get"in o&&(i=o.get(e,!0,n)),void 0===i&&(i=Ue(e,t,r)),"normal"===i&&t in Qe&&(i=Qe[t]),""===n||n?(a=parseFloat(i),!0===n||isFinite(a)?a||0:i):i}}),C.each(["height","width"],(function(e,t){C.cssHooks[t]={get:function(e,n,r){if(n)return!Ke.test(C.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?nt(e,t,r):We(e,Je,(function(){return nt(e,t,r)}))},set:function(e,n,r){var i,a=qe(e),o=!m.scrollboxSize()&&"absolute"===a.position,s=(o||r)&&"border-box"===C.css(e,"boxSizing",!1,a),l=r?tt(e,t,r,s,a):0;return s&&o&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-tt(e,t,"border",!1,a)-.5)),l&&(i=ie.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=C.css(e,t)),et(0,n,l)}}})),C.cssHooks.marginLeft=Ve(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ue(e,"marginLeft"))||e.getBoundingClientRect().left-We(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),C.each({margin:"",padding:"",border:"Width"},(function(e,t){C.cssHooks[e+t]={expand:function(n){for(var r=0,i={},a="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ae[r]+t]=a[r]||a[r-2]||a[0];return i}},"margin"!==e&&(C.cssHooks[e+t].set=et)})),C.fn.extend({css:function(e,t){return V(this,(function(e,t,n){var r,i,a={},o=0;if(Array.isArray(t)){for(r=qe(e),i=t.length;o<i;o++)a[t[o]]=C.css(e,t[o],!1,r);return a}return void 0!==n?C.style(e,t,n):C.css(e,t)}),e,t,arguments.length>1)}}),C.Tween=rt,rt.prototype={constructor:rt,init:function(e,t,n,r,i,a){this.elem=e,this.prop=n,this.easing=i||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(C.cssNumber[n]?"":"px")},cur:function(){var e=rt.propHooks[this.prop];return e&&e.get?e.get(this):rt.propHooks._default.get(this)},run:function(e){var t,n=rt.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rt.propHooks._default.set(this),this}},rt.prototype.init.prototype=rt.prototype,rt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=C.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||!C.cssHooks[e.prop]&&null==e.elem.style[Ye(e.prop)]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}},rt.propHooks.scrollTop=rt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=rt.prototype.init,C.fx.step={};var it,at,ot=/^(?:toggle|show|hide)$/,st=/queueHooks$/;function lt(){at&&(!1===y.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(lt):r.setTimeout(lt,C.fx.interval),C.fx.tick())}function ct(){return r.setTimeout((function(){it=void 0})),it=Date.now()}function ht(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ae[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ut(e,t,n){for(var r,i=(dt.tweeners[t]||[]).concat(dt.tweeners["*"]),a=0,o=i.length;a<o;a++)if(r=i[a].call(n,t,e))return r}function dt(e,t,n){var r,i,a=0,o=dt.prefilters.length,s=C.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=it||ct(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),a=0,o=c.tweens.length;a<o;a++)c.tweens[a].run(r);return s.notifyWith(e,[c,r,n]),r<1&&o?n:(o||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:C.extend({},t),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},n),originalProperties:t,originalOptions:n,startTime:it||ct(),duration:n.duration,tweens:[],createTween:function(t,n){var r=C.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),h=c.props;for(!function(e,t){var n,r,i,a,o;for(n in e)if(i=t[r=Y(n)],a=e[n],Array.isArray(a)&&(i=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),(o=C.cssHooks[r])&&"expand"in o)for(n in a=o.expand(a),delete e[r],a)n in e||(e[n]=a[n],t[n]=i);else t[r]=i}(h,c.opts.specialEasing);a<o;a++)if(r=dt.prefilters[a].call(c,e,h,c.opts))return b(r.stop)&&(C._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return C.map(h,ut,c),b(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),C.fx.timer(C.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}C.Animation=C.extend(dt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return he(n.elem,e,ie.exec(t),n),n}]},tweener:function(e,t){b(e)?(t=e,e=["*"]):e=e.match(H);for(var n,r=0,i=e.length;r<i;r++)n=e[r],dt.tweeners[n]=dt.tweeners[n]||[],dt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,a,o,s,l,c,h,u="width"in t||"height"in t,d=this,f={},p=e.style,g=e.nodeType&&ce(e),m=J.get(e,"fxshow");for(r in n.queue||(null==(o=C._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,d.always((function(){d.always((function(){o.unqueued--,C.queue(e,"fx").length||o.empty.fire()}))}))),t)if(i=t[r],ot.test(i)){if(delete t[r],a=a||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}f[r]=m&&m[r]||C.style(e,r)}if((l=!C.isEmptyObject(t))||!C.isEmptyObject(f))for(r in u&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=m&&m.display)&&(c=J.get(e,"display")),"none"===(h=C.css(e,"display"))&&(c?h=c:(fe([e],!0),c=e.style.display||c,h=C.css(e,"display"),fe([e]))),("inline"===h||"inline-block"===h&&null!=c)&&"none"===C.css(e,"float")&&(l||(d.done((function(){p.display=c})),null==c&&(h=p.display,c="none"===h?"":h)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,f)l||(m?"hidden"in m&&(g=m.hidden):m=J.access(e,"fxshow",{display:c}),a&&(m.hidden=!g),g&&fe([e],!0),d.done((function(){for(r in g||fe([e]),J.remove(e,"fxshow"),f)C.style(e,r,f[r])}))),l=ut(g?m[r]:0,r,d),r in m||(m[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?dt.prefilters.unshift(e):dt.prefilters.push(e)}}),C.speed=function(e,t,n){var r=e&&"object"==typeof e?C.extend({},e):{complete:n||!n&&t||b(e)&&e,duration:e,easing:n&&t||t&&!b(t)&&t};return C.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in C.fx.speeds?r.duration=C.fx.speeds[r.duration]:r.duration=C.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){b(r.old)&&r.old.call(this),r.queue&&C.dequeue(this,r.queue)},r},C.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=C.isEmptyObject(e),a=C.speed(t,n,r),o=function(){var t=dt(this,C.extend({},e),a);(i||J.get(this,"finish"))&&t.stop(!0)};return o.finish=o,i||!1===a.queue?this.each(o):this.queue(a.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",a=C.timers,o=J.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&st.test(i)&&r(o[i]);for(i=a.length;i--;)a[i].elem!==this||null!=e&&a[i].queue!==e||(a[i].anim.stop(n),t=!1,a.splice(i,1));!t&&n||C.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=J.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],a=C.timers,o=r?r.length:0;for(n.finish=!0,C.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),C.each(["toggle","show","hide"],(function(e,t){var n=C.fn[t];C.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ht(t,!0),e,r,i)}})),C.each({slideDown:ht("show"),slideUp:ht("hide"),slideToggle:ht("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){C.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),C.timers=[],C.fx.tick=function(){var e,t=0,n=C.timers;for(it=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||C.fx.stop(),it=void 0},C.fx.timer=function(e){C.timers.push(e),C.fx.start()},C.fx.interval=13,C.fx.start=function(){at||(at=!0,lt())},C.fx.stop=function(){at=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(e,t){return e=C.fx&&C.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var i=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(i)}}))},function(){var e=y.createElement("input"),t=y.createElement("select").appendChild(y.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=y.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var ft,pt=C.expr.attrHandle;C.fn.extend({attr:function(e,t){return V(this,C.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){C.removeAttr(this,e)}))}}),C.extend({attr:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?C.prop(e,t,n):(1===a&&C.isXMLDoc(e)||(i=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?ft:void 0)),void 0!==n?null===n?void C.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=C.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&M(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(H);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),ft={set:function(e,t,n){return!1===t?C.removeAttr(e,n):e.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=pt[t]||C.find.attr;pt[t]=function(e,t,r){var i,a,o=t.toLowerCase();return r||(a=pt[o],pt[o]=i,i=null!=n(e,t,r)?o:null,pt[o]=a),i}}));var gt=/^(?:input|select|textarea|button)$/i,mt=/^(?:a|area)$/i;function bt(e){return(e.match(H)||[]).join(" ")}function vt(e){return e.getAttribute&&e.getAttribute("class")||""}function yt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(H)||[]}C.fn.extend({prop:function(e,t){return V(this,C.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[C.propFix[e]||e]}))}}),C.extend({prop:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&C.isXMLDoc(e)||(t=C.propFix[t]||t,i=C.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):gt.test(e.nodeName)||mt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(C.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){C.propFix[this.toLowerCase()]=this})),C.fn.extend({addClass:function(e){var t,n,r,i,a,o,s,l=0;if(b(e))return this.each((function(t){C(this).addClass(e.call(this,t,vt(this)))}));if((t=yt(e)).length)for(;n=this[l++];)if(i=vt(n),r=1===n.nodeType&&" "+bt(i)+" "){for(o=0;a=t[o++];)r.indexOf(" "+a+" ")<0&&(r+=a+" ");i!==(s=bt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,a,o,s,l=0;if(b(e))return this.each((function(t){C(this).removeClass(e.call(this,t,vt(this)))}));if(!arguments.length)return this.attr("class","");if((t=yt(e)).length)for(;n=this[l++];)if(i=vt(n),r=1===n.nodeType&&" "+bt(i)+" "){for(o=0;a=t[o++];)for(;r.indexOf(" "+a+" ")>-1;)r=r.replace(" "+a+" "," ");i!==(s=bt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):b(e)?this.each((function(n){C(this).toggleClass(e.call(this,n,vt(this),t),t)})):this.each((function(){var t,i,a,o;if(r)for(i=0,a=C(this),o=yt(e);t=o[i++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else void 0!==e&&"boolean"!==n||((t=vt(this))&&J.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":J.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+bt(vt(n))+" ").indexOf(t)>-1)return!0;return!1}});var xt=/\r/g;C.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=b(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,C(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=C.map(i,(function(e){return null==e?"":e+""}))),(t=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=C.valHooks[i.type]||C.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(xt,""):null==n?"":n:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:bt(C.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,o="select-one"===e.type,s=o?null:[],l=o?a+1:i.length;for(r=a<0?l:o?a:0;r<l;r++)if(((n=i[r]).selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!M(n.parentNode,"optgroup"))){if(t=C(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,a=C.makeArray(t),o=i.length;o--;)((r=i[o]).selected=C.inArray(C.valHooks.option.get(r),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),C.each(["radio","checkbox"],(function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=C.inArray(C(e).val(),t)>-1}},m.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),m.focusin="onfocusin"in r;var wt=/^(?:focusinfocus|focusoutblur)$/,Tt=function(e){e.stopPropagation()};C.extend(C.event,{trigger:function(e,t,n,i){var a,o,s,l,c,h,u,d,p=[n||y],g=f.call(e,"type")?e.type:e,m=f.call(e,"namespace")?e.namespace.split("."):[];if(o=d=s=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!wt.test(g+C.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[C.expando]?e:new C.Event(g,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:C.makeArray(t,[e]),u=C.event.special[g]||{},i||!u.trigger||!1!==u.trigger.apply(n,t))){if(!i&&!u.noBubble&&!v(n)){for(l=u.delegateType||g,wt.test(l+g)||(o=o.parentNode);o;o=o.parentNode)p.push(o),s=o;s===(n.ownerDocument||y)&&p.push(s.defaultView||s.parentWindow||r)}for(a=0;(o=p[a++])&&!e.isPropagationStopped();)d=o,e.type=a>1?l:u.bindType||g,(h=(J.get(o,"events")||Object.create(null))[e.type]&&J.get(o,"handle"))&&h.apply(o,t),(h=c&&o[c])&&h.apply&&K(o)&&(e.result=h.apply(o,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(p.pop(),t)||!K(n)||c&&b(n[g])&&!v(n)&&((s=n[c])&&(n[c]=null),C.event.triggered=g,e.isPropagationStopped()&&d.addEventListener(g,Tt),n[g](),e.isPropagationStopped()&&d.removeEventListener(g,Tt),C.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(e,t,n){var r=C.extend(new C.Event,n,{type:e,isSimulated:!0});C.event.trigger(r,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each((function(){C.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return C.event.trigger(e,t,n,!0)}}),m.focusin||C.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){C.event.simulate(t,e.target,C.event.fix(e))};C.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=J.access(r,t);i||r.addEventListener(e,n,!0),J.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=J.access(r,t)-1;i?J.access(r,t,i):(r.removeEventListener(e,n,!0),J.remove(r,t))}}}));var St=r.location,Ct={guid:Date.now()},Et=/\?/;C.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||C.error("Invalid XML: "+(n?C.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Dt=/\[\]$/,_t=/\r?\n/g,kt=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;function Mt(e,t,n,r){var i;if(Array.isArray(t))C.each(t,(function(t,i){n||Dt.test(e)?r(e,i):Mt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==T(t))r(e,t);else for(i in t)Mt(e+"["+i+"]",t[i],n,r)}C.param=function(e,t){var n,r=[],i=function(e,t){var n=b(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,(function(){i(this.name,this.value)}));else for(n in e)Mt(n,e[n],t,i);return r.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&At.test(this.nodeName)&&!kt.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,(function(e){return{name:t.name,value:e.replace(_t,"\r\n")}})):{name:t.name,value:n.replace(_t,"\r\n")}})).get()}});var Rt=/%20/g,Pt=/#.*$/,Lt=/([?&])_=[^&]*/,It=/^(.*?):[ \t]*([^\r\n]*)$/gm,jt=/^(?:GET|HEAD)$/,Ft=/^\/\//,Nt={},Ht={},Ot="*/".concat("*"),Bt=y.createElement("a");function qt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,a=t.toLowerCase().match(H)||[];if(b(n))for(;r=a[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Wt(e,t,n,r){var i={},a=e===Ht;function o(s){var l;return i[s]=!0,C.each(e[s]||[],(function(e,s){var c=s(t,n,r);return"string"!=typeof c||a||i[c]?a?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)})),l}return o(t.dataTypes[0])||!i["*"]&&o("*")}function zt(e,t){var n,r,i=C.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&C.extend(!0,e,r),e}Bt.href=St.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ot,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?zt(zt(e,C.ajaxSettings),t):zt(C.ajaxSettings,e)},ajaxPrefilter:qt(Nt),ajaxTransport:qt(Ht),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,a,o,s,l,c,h,u,d,f=C.ajaxSetup({},t),p=f.context||f,g=f.context&&(p.nodeType||p.jquery)?C(p):C.event,m=C.Deferred(),b=C.Callbacks("once memory"),v=f.statusCode||{},x={},w={},T="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(c){if(!o)for(o={};t=It.exec(a);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)S.always(e[S.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||T;return n&&n.abort(t),E(0,t),this}};if(m.promise(S),f.url=((e||f.url||St.href)+"").replace(Ft,St.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(H)||[""],null==f.crossDomain){l=y.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Bt.protocol+"//"+Bt.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=C.param(f.data,f.traditional)),Wt(Nt,f,t,S),c)return S;for(u in(h=C.event&&f.global)&&0==C.active++&&C.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!jt.test(f.type),i=f.url.replace(Pt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Rt,"+")):(d=f.url.slice(i.length),f.data&&(f.processData||"string"==typeof f.data)&&(i+=(Et.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(i=i.replace(Lt,"$1"),d=(Et.test(i)?"&":"?")+"_="+Ct.guid+++d),f.url=i+d),f.ifModified&&(C.lastModified[i]&&S.setRequestHeader("If-Modified-Since",C.lastModified[i]),C.etag[i]&&S.setRequestHeader("If-None-Match",C.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&S.setRequestHeader("Content-Type",f.contentType),S.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ot+"; q=0.01":""):f.accepts["*"]),f.headers)S.setRequestHeader(u,f.headers[u]);if(f.beforeSend&&(!1===f.beforeSend.call(p,S,f)||c))return S.abort();if(T="abort",b.add(f.complete),S.done(f.success),S.fail(f.error),n=Wt(Ht,f,t,S)){if(S.readyState=1,h&&g.trigger("ajaxSend",[S,f]),c)return S;f.async&&f.timeout>0&&(s=r.setTimeout((function(){S.abort("timeout")}),f.timeout));try{c=!1,n.send(x,E)}catch(e){if(c)throw e;E(-1,e)}}else E(-1,"No Transport");function E(e,t,o,l){var u,d,y,x,w,T=t;c||(c=!0,s&&r.clearTimeout(s),n=void 0,a=l||"",S.readyState=e>0?4:0,u=e>=200&&e<300||304===e,o&&(x=function(e,t,n){for(var r,i,a,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)a=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){a=i;break}o||(o=i)}a=a||o}if(a)return a!==l[0]&&l.unshift(a),n[a]}(f,S,o)),!u&&C.inArray("script",f.dataTypes)>-1&&C.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),x=function(e,t,n,r){var i,a,o,s,l,c={},h=e.dataTypes.slice();if(h[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(a=h.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=h.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(o=c[l+" "+a]||c["* "+a]))for(i in c)if((s=i.split(" "))[1]===a&&(o=c[l+" "+s[0]]||c["* "+s[0]])){!0===o?o=c[i]:!0!==c[i]&&(a=s[0],h.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}(f,x,S,u),u?(f.ifModified&&((w=S.getResponseHeader("Last-Modified"))&&(C.lastModified[i]=w),(w=S.getResponseHeader("etag"))&&(C.etag[i]=w)),204===e||"HEAD"===f.type?T="nocontent":304===e?T="notmodified":(T=x.state,d=x.data,u=!(y=x.error))):(y=T,!e&&T||(T="error",e<0&&(e=0))),S.status=e,S.statusText=(t||T)+"",u?m.resolveWith(p,[d,T,S]):m.rejectWith(p,[S,T,y]),S.statusCode(v),v=void 0,h&&g.trigger(u?"ajaxSuccess":"ajaxError",[S,f,u?d:y]),b.fireWith(p,[S,T]),h&&(g.trigger("ajaxComplete",[S,f]),--C.active||C.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return C.get(e,t,n,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],(function(e,t){C[t]=function(e,n,r,i){return b(n)&&(i=i||r,r=n,n=void 0),C.ajax(C.extend({url:e,type:t,dataType:i,data:n,success:r},C.isPlainObject(e)&&e))}})),C.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),C._evalUrl=function(e,t,n){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){C.globalEval(e,t,n)}})},C.fn.extend({wrapAll:function(e){var t;return this[0]&&(b(e)&&(e=e.call(this[0])),t=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return b(e)?this.each((function(t){C(this).wrapInner(e.call(this,t))})):this.each((function(){var t=C(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=b(e);return this.each((function(n){C(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){C(this).replaceWith(this.childNodes)})),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Ut={0:200,1223:204},Vt=C.ajaxSettings.xhr();m.cors=!!Vt&&"withCredentials"in Vt,m.ajax=Vt=!!Vt,C.ajaxTransport((function(e){var t,n;if(m.cors||Vt&&!e.crossDomain)return{send:function(i,a){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];for(o in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(o,i[o]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a(Ut[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),C.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return C.globalEval(e),e}}}),C.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),C.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=C("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),y.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Xt,Gt=[],$t=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||C.expando+"_"+Ct.guid++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",(function(e,t,n){var i,a,o,s=!1!==e.jsonp&&($t.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&$t.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=b(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace($t,"$1"+i):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||C.error(i+" was not called"),o[0]},e.dataTypes[0]="json",a=r[i],r[i]=function(){o=arguments},n.always((function(){void 0===a?C(r).removeProp(i):r[i]=a,e[i]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(i)),o&&b(a)&&a(o[0]),o=a=void 0})),"script"})),m.createHTMLDocument=((Xt=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xt.childNodes.length),C.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((r=(t=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,t.head.appendChild(r)):t=y),a=!n&&[],(i=R.exec(e))?[t.createElement(i[1])]:(i=Se([e],t,a),a&&a.length&&C(a).remove(),C.merge([],i.childNodes)));var r,i,a},C.fn.load=function(e,t,n){var r,i,a,o=this,s=e.indexOf(" ");return s>-1&&(r=bt(e.slice(s)),e=e.slice(0,s)),b(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),o.length>0&&C.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){a=arguments,o.html(r?C("<div>").append(C.parseHTML(e)).find(r):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,a||[e.responseText,t,e])}))}),this},C.expr.pseudos.animated=function(e){return C.grep(C.timers,(function(t){return e===t.elem})).length},C.offset={setOffset:function(e,t,n){var r,i,a,o,s,l,c=C.css(e,"position"),h=C(e),u={};"static"===c&&(e.style.position="relative"),s=h.offset(),a=C.css(e,"top"),l=C.css(e,"left"),("absolute"===c||"fixed"===c)&&(a+l).indexOf("auto")>-1?(o=(r=h.position()).top,i=r.left):(o=parseFloat(a)||0,i=parseFloat(l)||0),b(t)&&(t=t.call(e,n,C.extend({},s))),null!=t.top&&(u.top=t.top-s.top+o),null!=t.left&&(u.left=t.left-s.left+i),"using"in t?t.using.call(e,u):h.css(u)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){C.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===C.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),i.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-C.css(r,"marginTop",!0),left:t.left-i.left-C.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||oe}))}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;C.fn[e]=function(r){return V(this,(function(e,r,i){var a;if(v(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===i)return a?a[t]:e[r];a?a.scrollTo(n?a.pageXOffset:i,n?i:a.pageYOffset):e[r]=i}),e,r,arguments.length)}})),C.each(["top","left"],(function(e,t){C.cssHooks[t]=Ve(m.pixelPosition,(function(e,n){if(n)return n=Ue(e,t),Be.test(n)?C(e).position()[t]+"px":n}))})),C.each({Height:"height",Width:"width"},(function(e,t){C.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){C.fn[r]=function(i,a){var o=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===a?"margin":"border");return V(this,(function(t,n,i){var a;return v(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===i?C.css(t,n,s):C.style(t,n,i,s)}),t,o?i:void 0,o)}}))})),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){C.fn[t]=function(e){return this.on(t,e)}})),C.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){C.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Yt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;C.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),b(e))return r=s.call(arguments,2),i=function(){return e.apply(t||this,r.concat(s.call(arguments)))},i.guid=e.guid=e.guid||C.guid++,i},C.holdReady=function(e){e?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=M,C.isFunction=b,C.isWindow=v,C.camelCase=Y,C.type=T,C.now=Date.now,C.isNumeric=function(e){var t=C.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},C.trim=function(e){return null==e?"":(e+"").replace(Yt,"")},void 0===(n=function(){return C}.apply(t,[]))||(e.exports=n);var Kt=r.jQuery,Zt=r.$;return C.noConflict=function(e){return r.$===C&&(r.$=Zt),e&&r.jQuery===C&&(r.jQuery=Kt),C},void 0===i&&(r.jQuery=r.$=C),C}))},851:(e,t,n)=>{"use strict";var r=n(171),i=Array.prototype.concat,a=Array.prototype.slice,o=e.exports=function(e){for(var t=[],n=0,o=e.length;n<o;n++){var s=e[n];r(s)?t=i.call(t,a.call(s)):t.push(s)}return t};o.wrap=function(e){return function(){return e(o(arguments))}}},316:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(379),i=n.n(r),a=n(795),o=n.n(a),s=n(569),l=n.n(s),c=n(565),h=n.n(c),u=n(216),d=n.n(u),f=n(589),p=n.n(f),g=n(392),m={};m.styleTagTransform=p(),m.setAttributes=h(),m.insert=l().bind(null,"head"),m.domAPI=o(),m.insertStyleElement=d();i()(g.Z,m);const b=g.Z&&g.Z.locals?g.Z.locals:void 0},379:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},o=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],h=a[c]||0,u="".concat(c," ").concat(h);a[c]=h+1;var d=n(u),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)t[d].references++,t[d].updater(f);else{var p=i(f,r);r.byIndex=s,t.splice(s,0,{identifier:u,updater:p,references:1})}o.push(u)}return o}function i(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var a=r(e=e||[],i=i||{});return function(e){e=e||[];for(var o=0;o<a.length;o++){var s=n(a[o]);t[s].references--}for(var l=r(e,i),c=0;c<a.length;c++){var h=n(a[c]);0===t[h].references&&(t[h].updater(),t.splice(h,1))}a=l}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},256:function(e,t,n){var r,i,a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};r=[n,t,n(926),n(926),n(316),n(290)],i=function(e,t,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(755);function s(e,t){e.forEach((function(e){if(e.output&&(t[e.output]||(t[e.output]={}),t[e.output][e.type]||(t[e.output][e.type]={}),t[e.output][e.type].duration=e.duration,t[e.output][e.type].start=e.start,t[e.output].duration||(t[e.output].duration=0),t[e.output].duration+=e.duration,t[e.output].name=e.name,"createTask"==e.type&&e.children)){var n=0;e.children.forEach((function(e){"createTask"==e.type&&(n+=e.duration)})),t[e.output].duration-=n,t[e.output][e.type].duration-=n}e.children&&s(e.children,t)}))}function l(e){var t={};s(e,t);var n=[],r=0;for(var i in t){var a=t[i];n[r]={},n[r].output=i,n[r].createTimeMS=a.createTask.duration,n[r].createTime=a.createTask.duration/1e3,n[r].createStart=a.createTask.start,a.buildTask?(n[r].buildTimeMS=a.buildTask.duration,n[r].buildTime=a.buildTask.duration/1e3,n[r].buildStart=a.buildTask.start):(n[r].buildTimeMS=0,n[r].buildTime=0,n[r].buildStart=0),n[r].totalTime=a.duration/1e3,n[r].name=a.name,r++}return n}function c(e){return e.toFixed(4)}window.createChart=function(e,t){for(var n=document.getElementById("canvas"),s=[],h=[],u={task:"#FFFFFF","sub-task":"#000000"},d=document.getElementById("selected-node"),f=0;f<e.length;f++){var p=new r.FlameChartPlugin({data:[e[f]],colors:u,name:"flameChart"+f});s.push(p),p.on("select",(function(e,t){var n=a({},e.node.source);n.children=void 0,n.color=void 0,n.start=void 0,n.end=void 0,n.level=void 0,n.index=void 0,n.duration=n.duration?n.duration/1e3+" s":void 0,n.parent=n.parent?n.parent.name:void 0,d.innerHTML=n?""+JSON.stringify({node:n},null,"  "):""}))}for(h.push(new r.TimeGridPlugin({})),h.push(new r.MarksPlugin({data:t})),f=0;f<s.length;f++)h.push(new i.TogglePlugin(e[f].name)),h.push(s[f]);var g=document.getElementById("wrapper"),m=function(){var e=window.getComputedStyle(g,null);return[parseInt(e.getPropertyValue("width")),parseInt(e.getPropertyValue("height"))-3]},b=m(),v=b[0],y=b[1];n.width=v,n.height=y;var x=new r.FlameChartContainer({canvas:n,plugins:h,colors:u,options:{timeUnits:"ms"}});x.resize(v,y),setTimeout((function(){var e=m(),t=e[0],n=e[1];x.resize(t,n)}),0),window.addEventListener("resize",(function(){var e=m(),t=e[0],n=e[1];x.resize(t,n)}));var w=l(e),T=o("#resources-list").DataTable({data:w,scrollX:!0,fixedColumns:!0,footerCallback:function(e,t,n,r,i){var a=this.api(),s=a.column(1,{search:"applied"}).data().reduce((function(e,t){return e+t}),0),l=a.column(1,{search:"applied",page:"current"}).data().reduce((function(e,t){return e+t}),0),h=a.column(2,{search:"applied"}).data().reduce((function(e,t){return e+t}),0),u=a.column(2,{search:"applied",page:"current"}).data().reduce((function(e,t){return e+t}),0),d=a.column(3,{search:"applied"}).data().reduce((function(e,t){return e+t}),0),f=a.column(3,{search:"applied",page:"current"}).data().reduce((function(e,t){return e+t}),0);o(a.column(0).footer()).html("Page sec <br>(Total sec)"),o(a.column(1).footer()).html(c(l)+" <br>("+c(s)+")"),o(a.column(2).footer()).html(c(u)+" <br>("+c(h)+")"),o(a.column(3).footer()).html(c(f)+" <br>("+c(d)+")")},columns:[{title:"Type",data:"name"},{title:"Total time sec",data:"totalTime"},{title:"Create Task sec",data:function(e,t,n,r){return void 0===e.createTime?"?":e.createTime}},{title:"Build Task sec",data:"buildTime"},{title:"Output",data:"output"}]});o("#resources-list").on("click","tbody td:not(:first-child)",(function(e){var t=o(this).closest("td").index(),n=T.row(this).data();2==t?(n.createStart,x.setZoom(n.createStart-1,n.createStart+n.createTimeMS+1)):3==t&&x.setZoom(n.buildStart-1,n.buildStart+n.buildTimeMS+1)})),o("#resources-list").on("mouseenter","tbody td:not(:first-child)",(function(e){var t=o(this).closest("td").index();2!=t&&3!=t||(e.target.style.cursor="pointer")}))}}.apply(t,r),void 0===i||(e.exports=i)},135:e=>{"use strict";e.exports=""},609:e=>{"use strict";e.exports=""},181:e=>{"use strict";e.exports=""},136:e=>{"use strict";e.exports=""},157:e=>{"use strict";e.exports=""},926:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EVENT_NAMES:()=>te,FlameChart:()=>se,FlameChartContainer:()=>ae,FlameChartPlugin:()=>y,MarksPlugin:()=>T,TimeGridPlugin:()=>w,TimeframeSelectorPlugin:()=>j,TimeseriesPlugin:()=>N,TogglePlugin:()=>q,UIPlugin:()=>a,WaterfallPlugin:()=>O,defaultPatterns:()=>$});var r=n(187),i=n(767);class a extends r.EventEmitter{constructor(e){super(),this.name=e}get fullHeight(){return"number"==typeof this.height?this.height:0}init(e,t){this.renderEngine=e,this.interactionsEngine=t}}const o=(e,t={})=>Object.keys(e).reduce(((n,r)=>(t[r]?n[r]=t[r]:n[r]=e[r],n)),{}),s=e=>"number"==typeof e,l=e=>e[e.length-1],c=(e,t,n)=>{const r=e*Math.SQRT2/2;let i=[];switch(n){case"top":i=[{x:0,y:t},{x:e/2,y:0},{x:e,y:t}];break;case"bottom":i=[{x:0,y:0},{x:e,y:0},{x:e/2,y:t}];break;case"left":i=[{x:t,y:0},{x:t,y:e},{x:0,y:e/2}];break;case"right":i=[{x:0,y:0},{x:0,y:e},{x:t,y:e/2}];break;case"top-left":i=[{x:0,y:0},{x:r,y:0},{x:0,y:r}];break;case"top-right":i=[{x:0,y:0},{x:r,y:0},{x:r,y:r}];break;case"bottom-left":i=[{x:0,y:0},{x:0,y:r},{x:r,y:r}];break;case"bottom-right":i=[{x:r,y:0},{x:0,y:r},{x:r,y:r}]}return i},h=(e,t,n=null,r=0)=>{e.forEach((e=>{const i=t(e,n,r);e.children&&h(e.children,t,i||e,r+1)}))},u=e=>{const t=[];let n=0;return h(e,((e,r,i)=>{const a={source:e,end:e.start+e.duration,parent:r,level:i,index:n++};return t.push(a),a})),t.sort(((e,t)=>e.level-t.level||e.source.start-t.source.start))},d=e=>{let t=!0,n=0,r=0;return e.forEach((({source:{start:e},end:i})=>{t?(n=e,r=i,t=!1):(n=n<e?n:e,r=r>i?r:i)})),{min:n,max:r}},f=(e,t,n)=>e.source.start<n&&e.end>t||e.source.start>t&&e.end<n,p=(e,t)=>e.source.color===t.source.color&&e.source.pattern===t.source.pattern&&e.source.type===t.source.type;function g(e,t=p){return e.reduce(((e,n)=>{const r=l(e),i=r&&l(r);return i&&i.level===n.level&&t(i,n)?r.push(n):e.push([n]),e}),[]).filter((e=>e.length)).map((e=>({nodes:e})))}const m=(e,t,n=0,r=0,i=.25,a=1)=>{let o=null,s=null,c=0;return e.reduce(((e,{nodes:l})=>{o=null,s=null,c=0;for(const h of l)f(h,n,r)&&(o&&!s||o&&s&&(h.source.start-(s.source.start+s.source.duration))*t<i&&h.source.duration*t<a&&s.source.duration*t<a?(o[c]=h,c++):(o=[h],c=1,e.push(o)),s=h);return e}),[]).map((e=>{var t;const n=e[0],r=(e=>{const t=e[0],n=l(e);return n.source.start+n.source.duration-t.source.start})(e),i=null===(t=e.find((e=>e.source.badge)))||void 0===t?void 0:t.source.badge;return{start:n.source.start,end:n.source.start+r,duration:r,type:n.source.type,color:n.source.color,pattern:n.source.pattern,level:n.level,badge:i,nodes:e}}))},b=(e,t,n,r,i,a)=>e.reduce(((e,o)=>(((e,t,n)=>e.start<n&&e.end>t||e.start>t&&e.end<n)(o,n,r)&&(o.duration*t<=2.25?e.push(o):e.push(...m([o],t,n,r,i,a))),e)),[]),v=i.hsl(180,30,70);class y extends a{constructor({data:e,colors:t={},name:n="flameChartPlugin"}){super(n),this.height="flexible",this.flatTree=[],this.positionY=0,this.colors={},this.selectedRegion=null,this.hoveredRegion=null,this.lastRandomColor=v,this.metaClusterizedFlatTree=[],this.actualClusterizedFlatTree=[],this.initialClusterizedFlatTree=[],this.lastUsedColor=null,this.renderChartTimeout=-1,this.data=e,this.userColors=t,this.parseData(),this.reset()}init(e,t){super.init(e,t),this.interactionsEngine.on("change-position",this.handlePositionChange.bind(this)),this.interactionsEngine.on("select",this.handleSelect.bind(this)),this.interactionsEngine.on("hover",this.handleHover.bind(this)),this.interactionsEngine.on("up",this.handleMouseUp.bind(this)),this.initData()}handlePositionChange({deltaX:e,deltaY:t}){const n=this.positionY,r=this.renderEngine.parent.positionX;this.interactionsEngine.setCursor("grabbing"),this.positionY+t>=0?this.setPositionY(this.positionY+t):this.setPositionY(0),this.renderEngine.tryToChangePosition(e),r===this.renderEngine.parent.positionX&&n===this.positionY||this.renderEngine.parent.render()}handleMouseUp(){this.interactionsEngine.clearCursor()}setPositionY(e){this.positionY=e}reset(){this.colors={},this.lastRandomColor=v,this.positionY=0,this.selectedRegion=null}calcMinMax(){const{flatTree:e}=this,{min:t,max:n}=d(e);this.min=t,this.max=n}handleSelect(e){var t,n;const r=this.findNodeInCluster(e);this.selectedRegion!==r&&(this.selectedRegion=r,this.renderEngine.render(),this.emit("select",{node:null!==(n=null===(t=this.selectedRegion)||void 0===t?void 0:t.data)&&void 0!==n?n:null,type:"flame-chart-node"}))}handleHover(e){this.hoveredRegion=this.findNodeInCluster(e)}findNodeInCluster(e){const t=this.interactionsEngine.getMouse();if(e&&"cluster"===e.type){const n=e.data.nodes.find((({level:e,source:{start:n,duration:r}})=>{const{x:i,y:a,w:o}=this.calcRect(n,r,e);return t.x>=i&&t.x<=i+o&&t.y>=a&&t.y<=a+this.renderEngine.blockHeight}));if(n)return{data:n,type:"node"}}return null}getColor(e="_default",t){if(t)return t;if(this.colors[e])return this.colors[e];if(this.userColors[e]){const t=new i(this.userColors[e]);return this.colors[e]=t.rgb().toString(),this.colors[e]}return this.lastRandomColor=this.lastRandomColor.rotate(27),this.colors[e]=this.lastRandomColor.rgb().toString(),this.colors[e]}setData(e){this.data=e,this.parseData(),this.initData(),this.reset(),this.renderEngine.recalcMinMax(),this.renderEngine.resetParentView()}parseData(){this.flatTree=u(this.data),this.calcMinMax()}initData(){this.metaClusterizedFlatTree=g(this.flatTree),this.initialClusterizedFlatTree=m(this.metaClusterizedFlatTree,this.renderEngine.zoom,this.min,this.max),this.reclusterizeClusteredFlatTree()}reclusterizeClusteredFlatTree(){this.actualClusterizedFlatTree=b(this.initialClusterizedFlatTree,this.renderEngine.zoom,this.renderEngine.positionX,this.renderEngine.positionX+this.renderEngine.getRealView())}calcRect(e,t,n){const r=t*this.renderEngine.zoom;return{x:this.renderEngine.timeToPosition(e),y:n*(this.renderEngine.blockHeight+1)-this.positionY,w:r<=.1?.1:r>=3?r-1:r-r/3}}renderTooltip(){if(this.hoveredRegion){if(!1===this.renderEngine.options.tooltip)return!0;if("function"==typeof this.renderEngine.options.tooltip)this.renderEngine.options.tooltip(this.hoveredRegion,this.renderEngine,this.interactionsEngine.getGlobalMouse());else{const{data:{source:{start:e,duration:t,name:n,children:r}}}=this.hoveredRegion,i=this.renderEngine.getTimeUnits(),a=t-(r?r.reduce(((e,{duration:t})=>e+t),0):0),o=this.renderEngine.getAccuracy()+2,s=`${n}`,l=`duration: ${t.toFixed(o)} ${i} ${(null==r?void 0:r.length)?`(self ${a.toFixed(o)} ${i})`:""}`,c=`start: ${e.toFixed(o)}`;this.renderEngine.renderTooltipFromData([{text:s},{text:l},{text:c}],this.interactionsEngine.getGlobalMouse())}return!0}return!1}render(){const{width:e,blockHeight:t,height:n,minTextWidth:r}=this.renderEngine;this.lastUsedColor=null,this.reclusterizeClusteredFlatTree();const i=r=>i=>{const{start:a,duration:o,level:s}=i,{x:l,y:c,w:h}=this.calcRect(a,o,s);l+h>0&&l<e&&c+t>0&&c<n&&r(i,l,c,h)},a=(e,n,r,i)=>{this.interactionsEngine.addHitRegion("cluster",e,n,r,i,t)};if(this.actualClusterizedFlatTree.forEach(i(((e,n,i,o)=>{const{type:s,nodes:l,color:c,pattern:h,badge:u}=e,d=this.interactionsEngine.getMouse();if(d.y>=i&&d.y<=i+t&&a(e,n,i,o),o>=.25&&(this.renderEngine.addRect({color:this.getColor(s,c),pattern:h,x:n,y:i,w:o},0),u)){const e=`node-badge-${u}`,t=2*this.renderEngine.styles.badgeSize/Math.SQRT2;this.renderEngine.createCachedDefaultPattern({name:e,type:"triangles",config:{color:u,width:t,align:"top",direction:"top-left"}}),this.renderEngine.addRect({pattern:e,color:"transparent",x:n,y:i,w:Math.min(t,o)},1)}o>=r&&1===l.length&&this.renderEngine.addText({text:l[0].source.name,x:n,y:i,w:o},2)}))),this.selectedRegion&&"node"===this.selectedRegion.type){const{source:{start:e,duration:t},level:n}=this.selectedRegion.data,{x:r,y:i,w:a}=this.calcRect(e,t,n);this.renderEngine.addStroke({color:"green",x:r,y:i,w:a,h:this.renderEngine.blockHeight},2)}clearTimeout(this.renderChartTimeout),this.renderChartTimeout=window.setTimeout((()=>{this.interactionsEngine.clearHitRegions(),this.actualClusterizedFlatTree.forEach(i(a))}),16)}}const x={font:"10px sans-serif",fontColor:"black"};class w extends a{constructor(e={}){super("timeGridPlugin"),this.styles=x,this.height=0,this.setSettings(e)}setSettings({styles:e}){this.styles=o(x,e),this.renderEngine&&this.overrideEngineSettings()}overrideEngineSettings(){this.renderEngine.setSettingsOverrides({styles:this.styles}),this.height=Math.round(this.renderEngine.charHeight+10)}init(e,t){super.init(e,t),this.overrideEngineSettings()}render(){return this.renderEngine.parent.timeGrid.renderTimes(this.renderEngine),this.renderEngine.parent.timeGrid.renderLines(0,this.renderEngine.height,this.renderEngine),!0}}class T extends a{constructor({data:e,name:t="marksPlugin"}){super(t),this.hoveredRegion=null,this.selectedRegion=null,this.marks=this.prepareMarks(e),this.calcMinMax()}calcMinMax(){const{marks:e}=this;e.length&&(this.min=e.reduce(((e,{timestamp:t})=>t<e?t:e),e[0].timestamp),this.max=e.reduce(((e,{timestamp:t})=>t>e?t:e),e[0].timestamp))}init(e,t){super.init(e,t),this.interactionsEngine.on("hover",this.handleHover.bind(this)),this.interactionsEngine.on("select",this.handleSelect.bind(this))}handleHover(e){this.hoveredRegion=e}handleSelect(e){var t;this.selectedRegion!==e&&(this.selectedRegion=e,this.emit("select",{node:null!==(t=null==e?void 0:e.data)&&void 0!==t?t:null,type:"mark"}),this.renderEngine.render())}get height(){return this.renderEngine.blockHeight+2}prepareMarks(e){return e.map((({color:e,...t})=>({...t,color:new i(e).alpha(.7).rgb().toString()}))).sort(((e,t)=>e.timestamp-t.timestamp))}setMarks(e){this.marks=this.prepareMarks(e),this.calcMinMax(),this.renderEngine.recalcMinMax(),this.renderEngine.resetParentView()}calcMarksBlockPosition(e,t){return e>0&&t>e?t:e}render(){this.marks.reduce(((e,t)=>{const{timestamp:n,color:r,shortName:i}=t,{width:a}=this.renderEngine.ctx.measureText(i),o=a+2*this.renderEngine.blockPaddingLeftRight,s=this.renderEngine.timeToPosition(n),l=this.calcMarksBlockPosition(s,e);return this.renderEngine.addRect({color:r,x:l,y:1,w:o}),this.renderEngine.addText({text:i,x:l,y:1,w:o}),this.interactionsEngine.addHitRegion("timestamp",t,l,1,o,this.renderEngine.blockHeight),l+o}),0)}postRender(){this.marks.forEach((e=>{const{timestamp:t,color:n}=e,r=this.renderEngine.timeToPosition(t);this.renderEngine.parent.setCtxValue("strokeStyle",n),this.renderEngine.parent.setCtxValue("lineWidth",1),this.renderEngine.parent.callCtx("setLineDash",[8,7]),this.renderEngine.parent.ctx.beginPath(),this.renderEngine.parent.ctx.moveTo(r,this.renderEngine.position),this.renderEngine.parent.ctx.lineTo(r,this.renderEngine.parent.height),this.renderEngine.parent.ctx.stroke()}))}renderTooltip(){if(this.hoveredRegion&&"timestamp"===this.hoveredRegion.type){if(!1===this.renderEngine.options.tooltip)return!0;if("function"==typeof this.renderEngine.options.tooltip)this.renderEngine.options.tooltip(this.hoveredRegion,this.renderEngine,this.interactionsEngine.getGlobalMouse());else{const{data:{fullName:e,timestamp:t}}=this.hoveredRegion,n=this.renderEngine.getAccuracy()+2,r=`${e}`,i=`${t.toFixed(n)} ${this.renderEngine.timeUnits}`;this.renderEngine.renderTooltipFromData([{text:r},{text:i}],this.interactionsEngine.getGlobalMouse())}return!0}return!1}}const S={color:"rgba(90,90,90,0.20)"};class C{constructor(e){this.styles=S,this.timeUnits="ms",this.start=0,this.end=0,this.accuracy=0,this.delta=0,this.setSettings(e)}setDefaultRenderEngine(e){this.renderEngine=e,this.timeUnits=this.renderEngine.getTimeUnits()}setSettings({styles:e}){this.styles=o(S,e),this.renderEngine&&(this.timeUnits=this.renderEngine.getTimeUnits())}recalc(){const e=this.renderEngine.max-this.renderEngine.min,t=e/(this.renderEngine.width/85),n=this.renderEngine.getRealView(),r=n/(e||1);this.delta=t/Math.pow(2,Math.floor(Math.log2(1/r))),this.start=Math.floor((this.renderEngine.positionX-this.renderEngine.min)/this.delta),this.end=Math.ceil(n/this.delta)+this.start,this.accuracy=this.calcNumberFix()}calcNumberFix(){var e;const t=(this.delta/2).toString();if(t.includes("e"))return Number(null===(e=t.match(/\d+$/))||void 0===e?void 0:e[0]);const n=t.match(/(0\.0*)/);return n?n[0].length-1:0}getTimelineAccuracy(){return this.accuracy}forEachTime(e){for(let t=this.start;t<=this.end;t++){const n=t*this.delta+this.renderEngine.min;e(this.renderEngine.timeToPosition(Number(n.toFixed(this.accuracy))),n)}}renderLines(e,t,n=this.renderEngine){n.setCtxValue("fillStyle",this.styles.color),this.forEachTime((r=>{n.fillRect(r,e,1,t)}))}renderTimes(e=this.renderEngine){e.setCtxValue("fillStyle",e.styles.fontColor),e.setCtxFont(e.styles.font),this.forEachTime(((t,n)=>{e.fillText(n.toFixed(this.accuracy)+this.timeUnits,t+e.blockPaddingLeftRight,e.charHeight)}))}}function E(e,t,n,r){return e.length?e.reduce(((e,{[t]:r})=>n(e,r)),e[0][t]):r}const D=e=>e.items.map((({name:t,intervals:n,timing:r,meta:i},a)=>{const o=("string"==typeof n?e.intervals[n]:n).map((({start:e,end:t,...n})=>({start:"string"==typeof e?r[e]:e,end:"string"==typeof t?r[t]:t,...n}))).filter((({start:e,end:t})=>"number"==typeof e&&"number"==typeof t)),s=o.filter((({type:e})=>"block"===e)),l=E(s,"start",Math.min,0),c=E(s,"end",Math.max,0),h=E(o,"start",Math.min,0),u=E(o,"end",Math.max,0);return{intervals:o,textBlock:{start:l,end:c},name:t,timing:r,min:h,max:u,index:a,meta:i}})).filter((({intervals:e})=>e.length)).sort(((e,t)=>e.min-t.min||t.max-e.max)),_=(e,t,n,r)=>r-(e-t)*n,k={fillColor:"rgba(0, 0, 0, 0.1)",lineWidth:1,lineDash:[],lineColor:"rgba(0, 0, 0, 0.5)",type:"smooth"},A=e=>{const t=[],n=e.map((e=>{var t;return{group:e.units&&!e.group?e.units:"default",...e,style:{lineWidth:1,fillColor:"rgba(0, 0, 0, 0.15)",lineColor:"rgba(0, 0, 0, 0.20)",lineDash:[],type:"smooth",...null!==(t=e.style)&&void 0!==t?t:{}}}})),r=n.reduce(((e,{points:n,group:r,min:i,max:a},o)=>(e[r]||(e[r]={min:null!=i?i:n[0][1],max:null!=a?a:n[0][1]}),t[o]={start:n[0][0],end:l(n)[0]},n.forEach((([n,s])=>{void 0===i&&(e[r].min=Math.min(e[r].min,s)),void 0===a&&(e[r].max=Math.max(e[r].max,s)),t[o].start=Math.min(t[o].start,n),t[o].end=Math.max(t[o].end,n)})),e)),{});return{summary:r,total:{min:Math.min(...t.map((({start:e})=>e))),max:Math.max(...t.map((({end:e})=>e)))},timeseries:n,timeboxes:t}},M=(e,t,n)=>{var r,i;return t.dynamicMinMax?e.reduce(((e,[,t])=>(e.min=Math.min(e.min,t),e.max=Math.max(e.max,t),e)),{min:null!==(r=t.min)&&void 0!==r?r:1/0,max:null!==(i=t.max)&&void 0!==i?i:-1/0}):t.group?n[t.group]:{min:-1/0,max:1/0}},R=(e,{timeseries:t})=>{const n=t.reduce(((t,{points:n,units:r,name:i,group:a})=>{const o=L(n,e),s=a!==r&&"default"!==a?a:"default";let l="";return o&&(i&&(l+=i+": "),l+=o[1].toFixed(2),r&&(l+=r)),t[s]||(t[s]=[]),t[s].push(l),t}),{});return Object.entries(n).reduce(((e,[t,n])=>("default"!==t&&e.push({text:t,color:"black"}),n.forEach((t=>{e.push({text:t})})),e)),[])},P=({engine:e,points:t,style:n,min:r,max:i})=>{const a={...k,...null!=n?n:{}};e.setCtxValue("strokeStyle",a.lineColor),e.setCtxValue("fillStyle",a.fillColor),e.setCtxValue("lineWidth",a.lineWidth),e.callCtx("setLineDash",a.lineDash),e.ctx.beginPath();const o=(e.height-e.charHeight-4)/(i-r);if(t.length>1){const n=t.map((([t,n])=>[e.timeToPosition(t),_(n,r,o,e.height)]));if(e.ctx.moveTo(n[0][0],e.height),e.ctx.lineTo(n[0][0],n[0][1]),"smooth"!==a.type&&a.type){if("line"===a.type)for(let t=1;t<n.length;t++)e.ctx.lineTo(n[t][0],n[t][1]);else if("bar"===a.type){for(let t=0;t<n.length;t++){const r=n[t],i=n[t-1]||r,a=n[t+1],o=(r[0]-i[0])/2,s=a?(a[0]-r[0])/2:o;e.ctx.lineTo(i[0]+o,r[1]),e.ctx.lineTo(r[0]+s,r[1]),a?e.ctx.lineTo(r[0]+s,a[1]):e.ctx.lineTo(r[0]+s,e.height)}e.ctx.lineTo(l(n)[0],e.height)}}else{for(let t=1;t<n.length-2;t++){const r=(n[t][0]+n[t+1][0])/2,i=(n[t][1]+n[t+1][1])/2;e.ctx.quadraticCurveTo(n[t][0],n[t][1],r,i)}const t=n[n.length-2],r=l(n);e.ctx.quadraticCurveTo(t[0],t[1],r[0],r[1]),e.ctx.quadraticCurveTo(r[0],r[1],r[0],e.height)}}e.ctx.closePath(),e.ctx.stroke(),e.ctx.fill()},L=(e,t,n=!0)=>{if(e[0][0]>=t)return n?e[0]:null;if(l(e)[0]<=t)return n?l(e):null;if(e.length<=1)return e[0];let r=0,i=e.length-1;for(;r<=i;){const n=Math.ceil((i+r)/2);if(t>=e[n-1][0]&&t<=e[n][0]){return e[Math.abs(t-e[n-1][0])<Math.abs(t-e[n][0])?n-1:n]}e[n][0]<t?r=n+1:i=n-1}return null},I={font:"9px sans-serif",fontColor:"black",overlayColor:"rgba(112, 112, 112, 0.5)",graphStrokeColor:"rgba(0, 0, 0, 0.10)",graphFillColor:"rgba(0, 0, 0, 0.15)",flameChartGraphType:"smooth",waterfallStrokeOpacity:.4,waterfallFillOpacity:.35,waterfallGraphType:"smooth",bottomLineColor:"rgba(0, 0, 0, 0.25)",knobColor:"rgb(131, 131, 131)",knobStrokeColor:"white",knobSize:6,height:60,backgroundColor:"white"};class j extends a{constructor({waterfall:e,flameChartNodes:t,timeseries:n,settings:r,name:i="timeframeSelectorPlugin"}){super(i),this.styles=I,this.height=0,this.leftKnobMoving=!1,this.rightKnobMoving=!1,this.selectingActive=!1,this.startSelectingPosition=0,this.actualClusters=[],this.clusters=[],this.flameChartMaxLevel=0,this.flameChartDots=[],this.waterfallDots=[],this.waterfallMaxLevel=0,this.actualClusterizedFlatTree=[],this.hoveredRegion=null,this.flameChartNodes=t,this.waterfall=e,this.timeseries=n,this.shouldRender=!0,this.setSettings(r)}init(e,t){super.init(e,t),this.interactionsEngine.on("down",this.handleMouseDown.bind(this)),this.interactionsEngine.on("up",this.handleMouseUp.bind(this)),this.interactionsEngine.on("move",this.handleMouseMove.bind(this)),this.interactionsEngine.on("hover",this.handleHover.bind(this)),this.setSettings()}handleHover(e){this.hoveredRegion=e}handleMouseDown(e,t){e&&("timeframeKnob"===e.type?("left"===e.data?this.leftKnobMoving=!0:this.rightKnobMoving=!0,this.interactionsEngine.setCursor("ew-resize")):"timeframeArea"===e.type&&(this.selectingActive=!0,this.startSelectingPosition=t.x))}handleMouseUp(e,t,n){let r=!1;if(this.timeout&&(r=!0),clearTimeout(this.timeout),this.timeout=window.setTimeout((()=>this.timeout=void 0),300),this.leftKnobMoving=!1,this.rightKnobMoving=!1,this.interactionsEngine.clearCursor(),this.selectingActive&&!n&&this.applyChanges(),this.selectingActive=!1,n&&!r){const e=this.getRightKnobPosition(),n=this.getLeftKnobPosition();t.x>e||t.x>n&&t.x<e&&t.x-n>e-t.x?this.setRightKnobPosition(t.x):this.setLeftKnobPosition(t.x),this.applyChanges()}r&&(this.renderEngine.parent.setZoom(this.renderEngine.getInitialZoom()),this.renderEngine.parent.setPositionX(this.renderEngine.min),this.renderEngine.parent.render())}handleMouseMove(e,t){this.leftKnobMoving&&(this.setLeftKnobPosition(t.x),this.applyChanges()),this.rightKnobMoving&&(this.setRightKnobPosition(t.x),this.applyChanges()),this.selectingActive&&(this.startSelectingPosition>=t.x?(this.setLeftKnobPosition(t.x),this.setRightKnobPosition(this.startSelectingPosition)):(this.setRightKnobPosition(t.x),this.setLeftKnobPosition(this.startSelectingPosition)),this.renderEngine.render())}postInit(){this.offscreenRenderEngine=this.renderEngine.makeChild(),this.offscreenRenderEngine.setSettingsOverrides({styles:this.styles}),this.timeGrid=new C({styles:this.renderEngine.parent.timeGrid.styles}),this.timeGrid.setDefaultRenderEngine(this.offscreenRenderEngine),this.offscreenRenderEngine.on("resize",(()=>{this.offscreenRenderEngine.setZoom(this.renderEngine.getInitialZoom()),this.offscreenRender()})),this.offscreenRenderEngine.on("min-max-change",(()=>this.shouldRender=!0)),this.setData({flameChartNodes:this.flameChartNodes,waterfall:this.waterfall,timeseries:this.timeseries})}setLeftKnobPosition(e){if(e<this.getRightKnobPosition()-1){const t=this.renderEngine.getRealView(),n=this.renderEngine.setPositionX(this.offscreenRenderEngine.pixelToTime(e)+this.renderEngine.min),r=this.renderEngine.width/(t-n);this.renderEngine.setZoom(r)}}setRightKnobPosition(e){if(e>this.getLeftKnobPosition()+1){const t=this.renderEngine.getRealView(),n=this.renderEngine.positionX+t-(this.offscreenRenderEngine.pixelToTime(e)+this.renderEngine.min),r=this.renderEngine.width/(t-n);this.renderEngine.setZoom(r)}}getLeftKnobPosition(){return(this.renderEngine.positionX-this.renderEngine.min)*this.renderEngine.getInitialZoom()}getRightKnobPosition(){return(this.renderEngine.positionX-this.renderEngine.min+this.renderEngine.getRealView())*this.renderEngine.getInitialZoom()}applyChanges(){this.renderEngine.parent.setPositionX(this.renderEngine.positionX),this.renderEngine.parent.setZoom(this.renderEngine.zoom),this.renderEngine.parent.render()}setSettings({styles:e}={styles:this.styles}){this.styles=o(I,e),this.height=this.styles.height,this.offscreenRenderEngine&&(this.offscreenRenderEngine.setSettingsOverrides({styles:this.styles}),this.timeGrid.setSettings({styles:this.renderEngine.parent.timeGrid.styles})),this.shouldRender=!0}makeFlameChartDots(){if(this.flameChartNodes){const e=[],t=u(this.flameChartNodes),{min:n,max:r}=d(t);this.min=n,this.max=r,this.clusters=g(t,(()=>!0)),this.actualClusters=m(this.clusters,this.renderEngine.zoom,this.min,this.max,2,1/0),this.actualClusterizedFlatTree=b(this.actualClusters,this.renderEngine.zoom,this.min,this.max,2,1/0).sort(((e,t)=>e.start-t.start)),this.actualClusterizedFlatTree.forEach((({start:t,end:n})=>{e.push({time:t,type:"start"},{time:n,type:"end"})})),e.sort(((e,t)=>e.time-t.time));const{dots:i,maxLevel:a}=this.makeRenderDots(e);this.flameChartDots=i,this.flameChartMaxLevel=a}}makeRenderDots(e){const t=[];let n=0,r=0;return e.forEach((({type:e,time:i})=>{"start"!==e&&"end"!==e||t.push([i,n]),"start"===e?n++:n--,r=Math.max(r,n),t.push([i,n])})),{dots:t,maxLevel:r}}makeWaterfallDots(){if(this.waterfall){const e=D(this.waterfall),t=Object.entries(e.reduce(((e,{intervals:t})=>(t.forEach((t=>{const{timeframeChart:n}=t;if(n){const r="string"==typeof n?n:t.color;e[r]||(e[r]=[]),e[r].push(t)}})),e)),{})).map((([e,t])=>{const n=[];return t.forEach((({start:e,end:t})=>{n.push({type:"start",time:e}),n.push({type:"end",time:t})})),n.sort(((e,t)=>e.time-t.time)),{color:e,points:n}}));let n=0;this.waterfallDots=t.map((({color:e,points:t})=>{const{dots:r,maxLevel:i}=this.makeRenderDots(t);return n=Math.max(n,i),{color:e,dots:r}})),this.waterfallMaxLevel=n}}prepareTimeseries(){var e;(null===(e=this.timeseries)||void 0===e?void 0:e.length)?this.preparedTimeseries=A(this.timeseries):this.preparedTimeseries=void 0}setData({flameChartNodes:e,waterfall:t,timeseries:n}){this.flameChartNodes=e,this.waterfall=t,this.timeseries=n,this.makeFlameChartDots(),this.makeWaterfallDots(),this.prepareTimeseries(),this.offscreenRender()}setTimeseries(e){this.timeseries=e,this.prepareTimeseries(),this.offscreenRender()}setFlameChartNodes(e){this.flameChartNodes=e,this.makeFlameChartDots(),this.offscreenRender()}setWaterfall(e){this.waterfall=e,this.makeWaterfallDots(),this.offscreenRender()}offscreenRender(){const e=this.offscreenRenderEngine.getInitialZoom();if(this.offscreenRenderEngine.setZoom(e),this.offscreenRenderEngine.setPositionX(this.offscreenRenderEngine.min),this.offscreenRenderEngine.clear(),this.timeGrid.recalc(),this.timeGrid.renderLines(0,this.offscreenRenderEngine.height),this.timeGrid.renderTimes(),P({engine:this.offscreenRenderEngine,points:this.flameChartDots,min:0,max:this.flameChartMaxLevel,style:{lineColor:this.styles.graphStrokeColor,fillColor:this.styles.graphFillColor,type:this.styles.flameChartGraphType}}),this.waterfallDots.forEach((({color:e,dots:t})=>{const n=new i(e);P({engine:this.offscreenRenderEngine,points:t,min:0,max:this.waterfallMaxLevel,style:{lineColor:n.alpha(this.styles.waterfallStrokeOpacity).rgb().toString(),fillColor:n.alpha(this.styles.waterfallFillOpacity).rgb().toString(),type:this.styles.waterfallGraphType}})})),this.preparedTimeseries){const{summary:e,timeseries:t}=this.preparedTimeseries;t.forEach((t=>{const n=M(t.points,t,e);P({engine:this.offscreenRenderEngine,points:t.points,min:n.min,max:n.max,style:t.style})}))}this.offscreenRenderEngine.setCtxValue("fillStyle",this.styles.bottomLineColor),this.offscreenRenderEngine.ctx.fillRect(0,this.height-1,this.offscreenRenderEngine.width,1)}renderTimeframe(){const e=this.renderEngine.positionX-this.renderEngine.min,t=e*this.renderEngine.getInitialZoom(),n=(e+this.renderEngine.getRealView())*this.renderEngine.getInitialZoom(),r=t-this.styles.knobSize/2,i=n-this.styles.knobSize/2,a=this.renderEngine.height/3;this.renderEngine.setCtxValue("fillStyle",this.styles.overlayColor),this.renderEngine.fillRect(0,0,t,this.renderEngine.height),this.renderEngine.fillRect(n,0,this.renderEngine.width-n,this.renderEngine.height),this.renderEngine.setCtxValue("fillStyle",this.styles.overlayColor),this.renderEngine.fillRect(t-1,0,1,this.renderEngine.height),this.renderEngine.fillRect(n+1,0,1,this.renderEngine.height),this.renderEngine.setCtxValue("fillStyle",this.styles.knobColor),this.renderEngine.fillRect(r,0,this.styles.knobSize,a),this.renderEngine.fillRect(i,0,this.styles.knobSize,a),this.renderEngine.renderStroke(this.styles.knobStrokeColor,r,0,this.styles.knobSize,a),this.renderEngine.renderStroke(this.styles.knobStrokeColor,i,0,this.styles.knobSize,a),this.interactionsEngine.addHitRegion("timeframeKnob","left",r,0,this.styles.knobSize,a,"ew-resize"),this.interactionsEngine.addHitRegion("timeframeKnob","right",i,0,this.styles.knobSize,a,"ew-resize"),this.interactionsEngine.addHitRegion("timeframeArea",null,0,0,this.renderEngine.width,this.renderEngine.height,"text")}renderTooltip(){if(this.hoveredRegion){const e=this.interactionsEngine.getMouse().x/this.renderEngine.getInitialZoom()+this.renderEngine.min,t=`${e.toFixed(this.renderEngine.getAccuracy()+2)} ${this.renderEngine.timeUnits}`,n=this.preparedTimeseries?R(e,this.preparedTimeseries):[];return this.renderEngine.renderTooltipFromData([{text:t},...n],this.interactionsEngine.getGlobalMouse()),!0}return!1}render(){return this.shouldRender&&(this.shouldRender=!1,this.offscreenRender()),this.renderEngine.copy(this.offscreenRenderEngine),this.renderTimeframe(),this.interactionsEngine.addHitRegion("timeframe",null,0,0,this.renderEngine.width,this.height),!0}}const F={height:56};class N extends a{constructor({name:e="timeseriesPlugin",data:t,settings:n}){super(e),this.height=56,this.hoveredRegion=null,this.setSettings(n),this.setData(t)}init(e,t){super.init(e,t),this.interactionsEngine.on("change-position",this.handlePositionChange.bind(this)),this.interactionsEngine.on("hover",this.handleHover.bind(this)),this.interactionsEngine.on("up",this.handleMouseUp.bind(this))}handlePositionChange(e){const t=this.renderEngine.parent.positionX;this.interactionsEngine.setCursor("grabbing"),this.renderEngine.tryToChangePosition(e.deltaX),t!==this.renderEngine.parent.positionX&&this.renderEngine.parent.render()}handleMouseUp(){this.interactionsEngine.clearCursor()}setSettings({styles:e}={styles:this.styles}){this.styles=o(F,e),this.height=this.styles.height}setData(e){const t=A(e);this.data=t,this.min=t.total.min,this.max=t.total.max,this.renderEngine&&(this.renderEngine.recalcMinMax(),this.renderEngine.resetParentView())}handleHover(e){this.hoveredRegion=e}renderTooltip(){if(this.hoveredRegion){const e=this.interactionsEngine.getMouse().x,t=this.renderEngine.pixelToTime(e)+this.renderEngine.positionX,n=`${t.toFixed(this.renderEngine.getAccuracy()+2)} ${this.renderEngine.timeUnits}`,r=R(t,this.data);return this.renderEngine.renderTooltipFromData([{text:n},...r],this.interactionsEngine.getGlobalMouse()),!0}return!1}render(){if(0===this.data.timeseries.length)return;const e=this.renderEngine.positionX,t=this.renderEngine.positionX+this.renderEngine.getRealView();this.data.timeseries.forEach(((n,r)=>{if(this.data.timeboxes[r].end<e||this.data.timeboxes[r].start>t)return;const i=e<=this.data.timeboxes[r].start?0:Math.max(n.points.findIndex((([t])=>t>=e))-2,0),a=t>=this.data.timeboxes[r].end?n.points.length:n.points.findIndex((([e])=>e>=t))+2,o=n.points.slice(i,a),s=M(o,n,this.data.summary);P({engine:this.renderEngine,points:o,min:s.min,max:s.max,style:n.style})})),this.interactionsEngine.addHitRegion("timeseries",null,0,0,this.renderEngine.width,this.height)}}const H={defaultHeight:68,lineWidth:1,lineHeight:"inherit"};class O extends a{constructor({data:e,name:t="waterfallPlugin",settings:n}){super(t),this.styles=H,this.height=H.defaultHeight,this.data=[],this.positionY=0,this.hoveredRegion=null,this.selectedRegion=null,this.initialData=[],this.setData(e),this.setSettings(n)}init(e,t){super.init(e,t),this.interactionsEngine.on("change-position",this.handlePositionChange.bind(this)),this.interactionsEngine.on("hover",this.handleHover.bind(this)),this.interactionsEngine.on("select",this.handleSelect.bind(this)),this.interactionsEngine.on("up",this.handleMouseUp.bind(this))}handlePositionChange({deltaX:e,deltaY:t}){const n=this.positionY,r=this.renderEngine.parent.positionX;this.interactionsEngine.setCursor("grabbing"),this.positionY+t>=0?this.setPositionY(this.positionY+t):this.setPositionY(0),this.renderEngine.tryToChangePosition(e),r===this.renderEngine.parent.positionX&&n===this.positionY||this.renderEngine.parent.render()}handleMouseUp(){this.interactionsEngine.clearCursor()}handleHover(e){this.hoveredRegion=e}handleSelect(e){var t;if(this.selectedRegion!==e){this.selectedRegion=e;const n=null!==(t=null==e?void 0:e.data)&&void 0!==t?t:null;this.emit("select",{node:null!==n?this.initialData[n]:null,type:"waterfall-node"}),this.renderEngine.render()}}setPositionY(e){this.positionY=e}setSettings({styles:e}){this.styles=o(H,e),this.height=this.styles.defaultHeight,this.positionY=0}setData(e){this.positionY=0,this.initialData=e.items,this.data=D(e),e.items.length&&(this.min=this.data.reduce(((e,{min:t})=>Math.min(e,t)),this.data[0].min),this.max=this.data.reduce(((e,{max:t})=>Math.max(e,t)),this.data[0].max)),this.renderEngine&&(this.renderEngine.recalcMinMax(),this.renderEngine.resetParentView())}calcRect(e,t,n){const r=t*this.renderEngine.zoom;return{x:this.renderEngine.timeToPosition(e),w:n?r<=.1?.1:r>=3?r-1:r-r/3:r}}renderTooltip(){if(this.hoveredRegion){if(!1===this.renderEngine.options.tooltip)return!0;if("function"==typeof this.renderEngine.options.tooltip){const{data:e}=this.hoveredRegion,t={...this.hoveredRegion};t.data=this.data.find((({index:t})=>e===t)),this.renderEngine.options.tooltip(t,this.renderEngine,this.interactionsEngine.getGlobalMouse())}else{const{data:e}=this.hoveredRegion,t=this.data.find((({index:t})=>e===t));if(t){const{name:e,intervals:n,timing:r,meta:i=[]}=t,a=this.renderEngine.getTimeUnits(),o=this.renderEngine.getAccuracy()+2,s={text:`${e}`},l={text:"intervals",color:this.renderEngine.styles.tooltipHeaderFontColor},c=n.map((({name:e,start:t,end:n})=>({text:`${e}: ${(n-t).toFixed(o)} ${a}`}))),h={text:"timing",color:this.renderEngine.styles.tooltipHeaderFontColor},u=Object.entries(r).filter((([,e])=>"number"==typeof e)).map((([e,t])=>({text:`${e}: ${t.toFixed(o)} ${a}`}))),d={text:"meta",color:this.renderEngine.styles.tooltipHeaderFontColor},f=i?i.map((({name:e,value:t,color:n})=>({text:`${e}: ${t}`,color:n}))):[];this.renderEngine.renderTooltipFromData([s,l,...c,h,...u,...f.length?[d,...f]:[]],this.interactionsEngine.getGlobalMouse())}}return!0}return!1}render(){const e=this.renderEngine.positionX+this.renderEngine.getRealView(),t=this.renderEngine.positionX,n=this.renderEngine.blockHeight+1,r=[];this.data.filter((({min:n,max:r})=>!(e<n&&e<r||t>r&&e>n))).map((e=>{for(;r.length&&e.min-l(r).max>0;)r.pop();const t=r.length,n={...e,level:t};return r.push(e),n})).forEach((({name:e,intervals:t,textBlock:r,level:i,index:a})=>{const o=i*n-this.positionY;if(o+n>=0&&o-n<=this.renderEngine.height){const i=this.renderEngine.timeToPosition(r.start),s=this.renderEngine.timeToPosition(r.end);this.renderEngine.addText({text:e,x:i,y:o,w:s-i});const{x:l,w:c}=t.reduce(((e,{color:r,pattern:i,start:a,end:s,type:l},c)=>{const{x:h,w:u}=this.calcRect(a,s-a,c===t.length-1);if("block"===l)this.renderEngine.addRect({color:r,pattern:i,x:h,y:o,w:u});else if("line"===l){const e=Math.min(this.styles.lineWidth,u);if(this.renderEngine.addRect({color:r,pattern:i,x:0===c?h+e:h,y:o+(n-this.styles.lineWidth)/2,w:c===t.length-1?u-e:u,h:this.styles.lineWidth}),0===c||c===t.length-1){const t="inherit"===this.styles.lineHeight?n/2:this.styles.lineHeight;this.renderEngine.addRect({color:r,pattern:i,x:0===c?h:h+u-e,y:o+(n-t)/2,w:e,h:t})}}return{x:null===e.x?h:e.x,w:u+e.w}}),{x:null,w:0});if(this.selectedRegion&&"waterfall-node"===this.selectedRegion.type){this.selectedRegion.data===a&&this.renderEngine.addStroke({color:"green",x:null!=l?l:0,y:o,w:c,h:this.renderEngine.blockHeight})}this.interactionsEngine.addHitRegion("waterfall-node",a,null!=l?l:0,o,c,this.renderEngine.blockHeight)}}),0)}}const B={height:16,color:"rgb(202,202,202, 0.25)",strokeColor:"rgb(138,138,138, 0.50)",dotsColor:"rgb(97,97,97)",fontColor:"black",font:"10px sans-serif",triangleWidth:10,triangleHeight:7,triangleColor:"black",leftPadding:10};class q extends a{constructor(e,t){super("togglePlugin"),this.styles=B,this.height=0,this.resizeActive=!1,this.resizeStartHeight=0,this.resizeStartPosition=0,this.setSettings(t),this.title=e}setSettings({styles:e}={}){this.styles=o(B,e),this.height=this.styles.height+1}init(e,t){super.init(e,t);this.getNextEngine().setFlexible(),this.interactionsEngine.on("click",(e=>{if(e&&"toggle"===e.type&&e.data===this.renderEngine.id){const e=this.getNextEngine();e.collapsed?e.expand():e.collapse(),this.renderEngine.parent.recalcChildrenLayout(),this.renderEngine.parent.render()}})),this.interactionsEngine.on("down",(e=>{if(e&&"knob-resize"===e.type&&e.data===this.renderEngine.id){const e=this.getPrevEngine();this.interactionsEngine.setCursor("row-resize"),this.resizeActive=!0,this.resizeStartHeight=e.height,this.resizeStartPosition=this.interactionsEngine.getGlobalMouse().y}})),this.interactionsEngine.parent.on("move",(()=>{if(this.resizeActive){const e=this.getPrevEngine(),t=this.interactionsEngine.getGlobalMouse();if(e.flexible){const n=this.resizeStartHeight-(this.resizeStartPosition-t.y);n<=0?(e.collapse(),e.resize({height:0})):(e.collapsed&&e.expand(),e.resize({height:n})),this.renderEngine.parent.render()}}})),this.interactionsEngine.parent.on("up",(()=>{this.interactionsEngine.clearCursor(),this.resizeActive=!1}))}getPrevEngine(){var e;const t=(null!==(e=this.renderEngine.id)&&void 0!==e?e:0)-1;return this.renderEngine.parent.children[t]}getNextEngine(){var e;const t=(null!==(e=this.renderEngine.id)&&void 0!==e?e:0)+1;return this.renderEngine.parent.children[t]}render(){const e=this.getNextEngine(),t=this.getPrevEngine(),n=this.styles.leftPadding+this.styles.triangleWidth,r=this.renderEngine.width/2,i=this.styles.height/2;this.renderEngine.setCtxFont(this.styles.font),this.renderEngine.setCtxValue("fillStyle",this.styles.color),this.renderEngine.setCtxValue("strokeStyle",this.styles.strokeColor),this.renderEngine.fillRect(0,0,this.renderEngine.width,this.styles.height),this.renderEngine.setCtxValue("fillStyle",this.styles.fontColor),this.renderEngine.addText({text:this.title,x:n,y:0,w:this.renderEngine.width}),e.collapsed?this.renderEngine.renderTriangle({color:this.styles.triangleColor,x:this.styles.leftPadding+this.styles.triangleHeight/2,y:(this.styles.height-this.styles.triangleWidth)/2,width:this.styles.triangleWidth,height:this.styles.triangleHeight,direction:"right"}):this.renderEngine.renderTriangle({color:this.styles.triangleColor,x:this.styles.leftPadding,y:(this.styles.height-this.styles.triangleHeight)/2,width:this.styles.triangleWidth,height:this.styles.triangleHeight,direction:"bottom"});const{width:a}=this.renderEngine.ctx.measureText(this.title),o=a+n;this.interactionsEngine.addHitRegion("toggle",this.renderEngine.id,0,0,o,this.styles.height,"pointer"),t.flexible&&(this.renderEngine.renderCircle(this.styles.dotsColor,r,i,1.5),this.renderEngine.renderCircle(this.styles.dotsColor,r-10,i,1.5),this.renderEngine.renderCircle(this.styles.dotsColor,r+10,i,1.5),this.interactionsEngine.addHitRegion("knob-resize",this.renderEngine.id,o,0,this.renderEngine.width-o,this.styles.height,"row-resize"))}}const W=()=>{const e=document.createElement("canvas");return{ctx:e.getContext("2d"),canvas:e}},z=({color:e="black",background:t="rgb(255,255,255, 0)",lineWidth:n=6,spacing:r=4,angle:i=45,dash:a}={})=>o=>{const{ctx:s,canvas:l}=W();s.setTransform(4,0,0,4,0,0),l.height=4*o.blockHeight;const c=4*n,h=4*r+c,u=i*Math.PI/180,d=u>3*Math.PI/2&&u<2*Math.PI||u>Math.PI/2&&u<Math.PI,f=u===Math.PI||u===2*Math.PI,p=u===Math.PI/2||u===3*Math.PI/2,g=f||p?f?c:c+h/2:Math.abs(Math.ceil(h/Math.cos(Math.PI/2-u)));l.width=g,s.fillStyle=t,s.fillRect(0,0,l.width,l.height),s.strokeStyle=e,s.lineWidth=c,s.lineCap="square";let m=0;if(s.beginPath(),a&&s.setLineDash(a.map((e=>4*e))),f)for(m=c/2;m<=l.height;)s.moveTo(0,m),s.lineTo(g,m),m+=h;else if(p)s.moveTo(g/2,0),s.lineTo(g/2,l.height);else{const e=Math.abs(h/Math.cos(u)),t=Math.abs(Math.ceil(Math.sin(u)*c));if(d)for(m=l.height;m>=0-c;)s.moveTo(0,m+t),m-=e,s.lineTo(g,m+t);else for(;m<=l.height+c;)s.moveTo(0,m-t),m+=e,s.lineTo(g,m-t)}s.stroke();return{pattern:o.ctx.createPattern(l,"repeat"),width:g,scale:4}},U=({color:e="black",background:t="rgb(255,255,255, 0)",size:n=2,rows:r,align:i="center",spacing:a=2,verticalSpicing:o=a,horizontalSpicing:s=a}={})=>a=>{const{ctx:l,canvas:c}=W(),h=4*n,u=h/2,d=4*o,f=4*(n+4*s/4),p=4*a.blockHeight,g=r||Math.floor(p/(h+d));l.setTransform(4,0,0,4,0,0),c.height=p,c.width=f,l.fillStyle=t,l.fillRect(0,0,c.width,c.height),l.fillStyle=e;const m=p-((h+d)*g-d),b="center"===i?m/2:"top"===i?0:m;for(let e=0;e<g;e++)l.arc(f/2,b+(h+d)*e+u,u,0,2*Math.PI),l.fill();return{pattern:a.ctx.createPattern(c,"repeat"),width:f,scale:4}},V=({colors:e})=>t=>{const{ctx:n,canvas:r}=W(),i=4*t.blockHeight;n.setTransform(4,0,0,4,0,0),r.height=i,r.width=4;const a=n.createLinearGradient(0,0,4,i);for(const{offset:t,color:n}of e)a.addColorStop(t,n);n.fillStyle=a,n.fillRect(0,0,4,i);return{pattern:t.ctx.createPattern(r,"repeat"),width:4,scale:4}},X=({color:e="black",background:t="rgb(255,255,255, 0)",width:n=16,height:r=n/2,align:i="center",direction:a="right",spacing:o=n})=>s=>{const{ctx:l,canvas:h}=W(),u=c(4*n,4*r,a),d=Math.max(...u.map((({x:e})=>e))),f=Math.max(...u.map((({y:e})=>e))),p=d+4*o,g=4*s.blockHeight,m="center"===i?(g-f)/2:"top"===i?0:g-f;l.setTransform(4,0,0,4,0,0),h.height=g,h.width=p,l.fillStyle=t,l.fillRect(0,0,h.width,h.height),l.fillStyle=e,l.beginPath(),l.moveTo(u[0].x,u[0].y+m),u.slice(1).forEach((({x:e,y:t})=>l.lineTo(e,t+m))),l.closePath(),l.fill();return{pattern:s.ctx.createPattern(h,"repeat"),width:p,scale:4}},G={stripes:z,dots:U,gradient:V,triangles:X};const $={stripes:z,dots:U,gradient:V,triangles:X,combined:e=>t=>{const{ctx:n,canvas:r}=W(),i=e.map((e=>"creator"in e?e.creator(t):G[e.type](e.config)(t))),a=4*t.blockHeight,o=function(e,t=1/0){const n=Math.max(...e);if(e.every((e=>n%e==0)))return n;let r=1;for(;r<t;){let t=!0;for(let n=0;n<e.length;n++)if(r%e[n]!=0){t=!1;break}if(t)return r;r++}return t}(i.map((({width:e=1,scale:t=1})=>e*(4/t))),4*t.width),s=Math.max(...i.map((e=>e.scale||1)));n.setTransform(s,0,0,s,0,0),r.height=a,r.width=o,i.forEach((({scale:e=1,pattern:t})=>{n.fillStyle=t,t.setTransform((new DOMMatrixReadOnly).scale(4/e,4/e)),n.fillRect(0,0,o,a)}));return{pattern:t.ctx.createPattern(r,"repeat"),width:o,scale:4}}},Y="QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890_-+()[]{}\\/|'\";:.,?~";const K={tooltip:void 0,timeUnits:"ms"},Z={blockHeight:16,blockPaddingLeftRight:4,backgroundColor:"white",font:"10px sans-serif",fontColor:"black",badgeSize:8,tooltipHeaderFontColor:"black",tooltipBodyFontColor:"#688f45",tooltipBackgroundColor:"white",tooltipShadowColor:"black",tooltipShadowBlur:6,tooltipShadowOffsetX:0,tooltipShadowOffsetY:0,headerHeight:14,headerColor:"rgba(112, 112, 112, 0.25)",headerStrokeColor:"rgba(112, 112, 112, 0.5)",headerTitleLeftPadding:16};class J extends r.EventEmitter{constructor(e,t){super(),this.options=K,this.timeUnits="ms",this.styles=Z,this.blockPaddingLeftRight=0,this.blockHeight=0,this.blockPaddingTopBottom=0,this.charHeight=0,this.placeholderWidth=0,this.avgCharWidth=0,this.minTextWidth=0,this.queue={},this.zoom=0,this.positionX=0,this.min=0,this.max=0,this.patterns={},this.ctxCachedSettings={},this.ctxCachedCalls={},this.setCtxValue=(e,t)=>{this.ctxCachedSettings[e]!==t&&(this.ctx[e]=t,this.ctxCachedSettings[e]=t)},this.callCtx=(e,t)=>{this.ctxCachedCalls[e]&&this.ctxCachedCalls[e]===t||(this.ctx[e](t),this.ctxCachedCalls[e]=t)},this.width=e.width,this.height=e.height,this.isSafari=(()=>{const e=navigator.userAgent.toLowerCase();return!!e.includes("safari")&&!e.includes("chrome")})(),this.canvas=e,this.ctx=e.getContext("2d",{alpha:!1}),this.pixelRatio=function(e){const t=e;return(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}(this.ctx),this.setSettings(t),this.applyCanvasSize(),this.reset()}setSettings({options:e,styles:t,patterns:n}){if(this.options=o(K,e),this.styles=o(Z,t),n){const e=n.filter((e=>"creator"in e));n.filter((e=>!("creator"in e))).forEach((e=>this.createDefaultPattern(e))),e.forEach((e=>this.createBlockPattern(e)))}this.timeUnits=this.options.timeUnits,this.blockHeight=this.styles.blockHeight,this.ctx.font=this.styles.font;const{actualBoundingBoxAscent:r,actualBoundingBoxDescent:i,width:a}=this.ctx.measureText(Y),{width:s}=this.ctx.measureText("…"),l=r+i;this.blockPaddingLeftRight=this.styles.blockPaddingLeftRight,this.blockPaddingTopBottom=Math.ceil((this.blockHeight-l)/2),this.charHeight=l+1,this.placeholderWidth=s,this.avgCharWidth=a/Y.length,this.minTextWidth=this.avgCharWidth+this.placeholderWidth}reset(){this.queue={},this.ctxCachedCalls={},this.ctxCachedSettings={}}setCtxShadow(e){var t,n;this.setCtxValue("shadowBlur",e.blur),this.setCtxValue("shadowColor",e.color),this.setCtxValue("shadowOffsetY",null!==(t=e.offsetY)&&void 0!==t?t:0),this.setCtxValue("shadowOffsetX",null!==(n=e.offsetX)&&void 0!==n?n:0)}setCtxFont(e){e&&this.ctx.font!==e&&(this.ctx.font=e)}fillRect(e,t,n,r){this.ctx.fillRect(e,t,n,r)}fillText(e,t,n){this.ctx.fillText(e,t,n)}renderBlock(e,t,n,r){const i=Math.min(this.width,Math.max(0,e)),a=i-e,o=Math.min(this.width-i,Math.max(0,n-a));this.ctx.fillRect(i,t,o,null!=r?r:this.blockHeight)}renderStroke(e,t,n,r,i){this.setCtxValue("strokeStyle",e),this.ctx.setLineDash([]),this.ctx.strokeRect(t,n,r,i)}clear(e=this.width,t=this.height,n=0,r=0){this.setCtxValue("fillStyle",this.styles.backgroundColor),this.ctx.clearRect(n,r,e,t-1),this.ctx.fillRect(n,r,e,t),this.ctxCachedCalls={},this.ctxCachedSettings={},this.emit("clear")}timeToPosition(e){return e*this.zoom-this.positionX*this.zoom}pixelToTime(e){return e/this.zoom}setZoom(e){this.zoom=e}setPositionX(e){const t=this.positionX;return this.positionX=e,e-t}getQueue(e=0){return this.queue[e]||(this.queue[e]={text:[],stroke:[],rect:{}}),this.queue[e]}addRect(e,t=0){const n=this.getQueue(t);e.pattern=e.pattern||"none",n.rect[e.pattern]||(n.rect[e.pattern]={}),n.rect[e.pattern][e.color]||(n.rect[e.pattern][e.color]=[]),n.rect[e.pattern][e.color].push(e)}addText({text:e,x:t,y:n,w:r},i=0){if(e){const a=r-(2*this.blockPaddingLeftRight-(t<0?t:0));if(a>0){this.getQueue(i).text.push({text:e,x:t,y:n,w:r,textMaxWidth:a})}}}addStroke(e,t=0){this.getQueue(t).stroke.push(e)}resolveQueue(){Object.keys(this.queue).map((e=>parseInt(e))).sort().forEach((e=>{const{rect:t,text:n,stroke:r}=this.queue[e];this.renderRects(t),this.renderTexts(n),this.renderStrokes(r)})),this.queue={}}renderRects(e){Object.entries(e).forEach((([e,t])=>{let n,r=new DOMMatrixReadOnly;"none"!==e&&this.patterns[e]&&(n=this.patterns[e],1!==n.scale&&(r=r.scale(1/n.scale,1/n.scale)),this.ctx.fillStyle=n.pattern,this.ctxCachedSettings.fillStyle=e),Object.entries(t).forEach((([e,t])=>{n||this.setCtxValue("fillStyle",e),t.forEach((e=>{if(n){const t=e.x*n.scale,i=t-Math.floor(t/n.width)*n.width;n.pattern.setTransform(r.translate(i,e.y*n.scale))}this.renderBlock(e.x,e.y,e.w,e.h)}))}))}))}renderTexts(e){this.setCtxValue("fillStyle",this.styles.fontColor),e.forEach((({text:e,x:t,y:n,textMaxWidth:r})=>{const{width:i}=this.ctx.measureText(e);if(i>r){const t=i/e.length,n=(Math.floor((r-this.placeholderWidth)/t)-1)/2;e=n>0?e.slice(0,Math.ceil(n))+"…"+e.slice(e.length-Math.floor(n),e.length):""}e&&this.ctx.fillText(e,(t<0?0:t)+this.blockPaddingLeftRight,n+this.blockHeight-this.blockPaddingTopBottom)}))}renderStrokes(e){e.forEach((({color:e,x:t,y:n,w:r,h:i})=>{this.renderStroke(e,t,n,r,i)}))}setMinMax(e,t){const n=e!==this.min||t!==this.max;this.min=e,this.max=t,n&&this.emit("min-max-change",e,t)}getTimeUnits(){return this.timeUnits}tryToChangePosition(e){const t=this.getRealView();this.positionX+e+t<=this.max&&this.positionX+e>=this.min?this.setPositionX(this.positionX+e):this.positionX+e<=this.min?this.setPositionX(this.min):this.positionX+e+t>=this.max&&this.setPositionX(this.max-t)}getInitialZoom(){return this.max-this.min>0?this.width/(this.max-this.min):1}getRealView(){return this.width/this.zoom}resetView(){this.setZoom(this.getInitialZoom()),this.setPositionX(this.min)}resize(e,t){const n=Math.max(0,e||0),r=Math.max(0,t||0),i="number"==typeof e&&this.width!==n,a="number"==typeof t&&this.height!==r;return!(!i&&!a)&&(this.width=i?n:this.width,this.height=a?r:this.height,this.applyCanvasSize(),this.emit("resize",{width:this.width,height:this.height}),a)}applyCanvasSize(){this.canvas.style.backgroundColor="white",this.canvas.style.overflow="hidden",this.canvas.style.width=this.width+"px",this.canvas.style.height=this.height+"px",this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.ctx.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0),this.ctx.font=this.styles.font}copy(e){const t=this.isSafari?1:e.pixelRatio;e.canvas.height&&this.ctx.drawImage(e.canvas,0,0,e.canvas.width*t,e.canvas.height*t,0,e.position||0,e.width*t,e.height*t)}createDefaultPattern({name:e,type:t,config:n}){const r=$[t];r&&this.createBlockPattern({name:e,creator:r(n)})}createCachedDefaultPattern(e){this.patterns[e.name]||this.createDefaultPattern(e)}createBlockPattern({name:e,creator:t}){this.patterns[e]={scale:1,width:10,...t(this)}}renderTooltipFromData(e,t){const n=t.x+10,r=t.y+10,i=e.map((({text:e})=>e)).map((e=>this.ctx.measureText(e))).reduce(((e,{width:t})=>Math.max(e,t)),0)+2*this.blockPaddingLeftRight;this.setCtxShadow({color:this.styles.tooltipShadowColor,blur:this.styles.tooltipShadowBlur,offsetX:this.styles.tooltipShadowOffsetX,offsetY:this.styles.tooltipShadowOffsetY}),this.setCtxValue("fillStyle",this.styles.tooltipBackgroundColor),this.ctx.fillRect(n,r,i+2*this.blockPaddingLeftRight,(this.charHeight+2)*e.length+2*this.blockPaddingLeftRight),this.setCtxShadow({color:"transparent",blur:0}),e.forEach((({text:e,color:t},i)=>{t?this.setCtxValue("fillStyle",t):i?this.setCtxValue("fillStyle",this.styles.tooltipBodyFontColor):this.setCtxValue("fillStyle",this.styles.tooltipHeaderFontColor),this.ctx.fillText(e,n+this.blockPaddingLeftRight,r+this.blockHeight-this.blockPaddingTopBottom+(this.charHeight+2)*i)}))}renderShape(e,t,n,r){this.setCtxValue("fillStyle",e),this.ctx.beginPath(),this.ctx.moveTo(t[0].x+n,t[0].y+r),t.slice(1).forEach((({x:e,y:t})=>this.ctx.lineTo(e+n,t+r))),this.ctx.closePath(),this.ctx.fill()}renderTriangle({color:e,x:t,y:n,width:r,height:i,direction:a}){this.renderShape(e,c(r,i,a),t,n)}renderCircle(e,t,n,r){this.ctx.beginPath(),this.ctx.arc(t,n,r,0,2*Math.PI,!1),this.setCtxValue("fillStyle",e),this.ctx.fill()}}class Q extends J{constructor({width:e,height:t,parent:n,id:r}){const i=document.createElement("canvas");i.width=e,i.height=t,super(i,{options:n.options,styles:n.styles}),this.flexible=!1,this.collapsed=!1,this.position=0,this.savedHeight=null,this.width=e,this.height=t,this.parent=n,this.id=r,this.children=[],this.applyCanvasSize()}makeChild(){const e=new Q({width:this.width,height:this.height,parent:this.parent,id:void 0});return this.children.push(e),e.setMinMax(this.min,this.max),e.resetView(),e}setFlexible(){this.flexible=!0}collapse(){this.collapsed=!0,this.savedHeight=this.height,this.clear()}expand(){this.collapsed=!1,this.savedHeight&&this.resize({height:this.savedHeight})}setSettingsOverrides(e){this.setSettings({styles:o(this.styles,e.styles),options:o(this.options,e.options)}),this.children.forEach((t=>t.setSettingsOverrides(e)))}resize({width:e,height:t,position:n},r){const i=super.resize(e,t);(null!=t?t:0)<=0&&(this.collapsed=!0),!r&&i&&this.parent.recalcChildrenLayout(),"number"==typeof n&&(this.position=n),this.children.forEach((r=>r.resize({width:e,height:t,position:n})))}setMinMax(e,t){super.setMinMax(e,t),this.children.forEach((n=>n.setMinMax(e,t)))}setSettings(e){super.setSettings(e),this.children&&this.children.forEach((t=>t.setSettings(e)))}tryToChangePosition(e){this.parent.tryToChangePosition(e)}recalcMinMax(){this.parent.calcMinMax()}getTimeUnits(){return this.parent.getTimeUnits()}getAccuracy(){return this.parent.timeGrid.accuracy}renderTimeGrid(){this.parent.timeGrid.renderLines(0,this.height,this)}renderTimeGridTimes(){this.parent.timeGrid.renderTimes(this)}standardRender(){this.resolveQueue(),this.renderTimeGrid()}renderTooltipFromData(e,t){this.parent.renderTooltipFromData(e,t)}resetParentView(){this.parent.resetView(),this.parent.render()}render(){this.parent.partialRender(this.id)}}class ee extends J{constructor({canvas:e,settings:t,timeGrid:n,plugins:r}){super(e,t),this.freeSpace=0,this.lastPartialAnimationFrame=null,this.lastGlobalAnimationFrame=null,this.plugins=r,this.children=[],this.requestedRenders=[],this.timeGrid=n,this.timeGrid.setDefaultRenderEngine(this)}makeInstance(){const e=new Q({width:this.width,height:0,id:this.children.length,parent:this});return e.setMinMax(this.min,this.max),e.resetView(),this.children.push(e),e}calcMinMax(){const e=this.plugins.map((({min:e})=>e)).filter(s),t=e.length?e.reduce(((e,t)=>Math.min(e,t))):0,n=this.plugins.map((({max:e})=>e)).filter(s),r=n.length?n.reduce(((e,t)=>Math.max(e,t))):0;this.setMinMax(t,r)}calcTimeGrid(){this.timeGrid.recalc()}setMinMax(e,t){super.setMinMax(e,t),this.children.forEach((n=>n.setMinMax(e,t)))}setSettings(e){super.setSettings(e),this.children&&(this.children.forEach((t=>t.setSettings(e))),this.recalcChildrenLayout())}resize(e,t){const n=this.width;return super.resize(e,t),this.recalcChildrenLayout(),this.getInitialZoom()>this.zoom?this.resetView():this.positionX>this.min&&this.tryToChangePosition(-this.pixelToTime((e-n)/2)),!0}recalcChildrenLayout(){const e=this.getChildrenLayout();e.freeSpace>0?this.expandGrowingChildrenLayout(e):e.freeSpace<0&&this.truncateChildrenLayout(e),this.freeSpace=e.freeSpace,this.children.forEach(((t,n)=>{t.resize(e.placements[n],!0)}))}getChildrenLayout(){return this.children.reduce(((e,t,n)=>{var r;const i=this.plugins[n],a=i.fullHeight;let o="static",s=0;if(t.flexible&&"number"==typeof i.height?o="flexibleStatic":"flexible"===i.height&&(o="flexibleGrowing"),t.collapsed)s=0;else switch(o){case"static":s=a;break;case"flexibleGrowing":s=t.height||0;break;case"flexibleStatic":s=null!==(r=t.height||a)&&void 0!==r?r:0}return e.placements.push({width:this.width,position:e.position,height:s,type:o}),e.position+=s,e.freeSpace-=s,e}),{position:0,placements:[],freeSpace:this.height})}expandGrowingChildrenLayout(e){const{placements:t,freeSpace:n}=e,r=t[t.length-1],i=t.map((({type:e,height:t},n)=>"flexibleGrowing"===e&&!this.children[n].collapsed&&0===t)),a=i.filter(Boolean).length;if(a){const r=Math.max(0,Math.floor(n/a));i.forEach(((n,i)=>{if(n){t[i].height+=r,e.freeSpace-=r;for(let e=i+1;e<t.length;e++)t[e].position+=r}}))}return"flexibleGrowing"!==r.type||this.children[this.children.length-1].collapsed||(r.height=Math.max(0,this.height-r.position),e.freeSpace=0),e}truncateChildrenLayout(e){const{placements:t,freeSpace:n}=e;let r=Math.abs(n);for(;r>0;){const n=t.findLastIndex((({height:e,type:t})=>e>0&&"static"!==t));if(-1!==n){const i=t[n],a=Math.max(0,i.height-r),o=i.height-a;i.height=a,r-=o,e.freeSpace+=o,t.forEach(((e,t)=>{t>n&&(e.position-=o)}))}}return e}getAccuracy(){return this.timeGrid.accuracy}setZoom(e){if(this.getAccuracy()<6||e<=this.zoom){const t=Math.max(e,this.getInitialZoom());if(t!==this.zoom)return super.setZoom(t),this.children.forEach((e=>e.setZoom(t))),!0}return!1}setPositionX(e){const t=super.setPositionX(e);return this.children.forEach((t=>t.setPositionX(e))),t}renderPlugin(e){var t;const n=this.plugins[e],r=this.children[e];if(null==r||r.clear(),!r.collapsed){(null===(t=null==n?void 0:n.render)||void 0===t?void 0:t.call(n))||r.standardRender()}}partialRender(e){"number"==typeof e&&this.requestedRenders.push(e),this.lastPartialAnimationFrame||(this.lastPartialAnimationFrame=requestAnimationFrame((()=>{this.requestedRenders.forEach((e=>this.renderPlugin(e))),this.shallowRender(),this.requestedRenders=[],this.lastPartialAnimationFrame=null})))}shallowRender(){this.clear(),this.timeGrid.renderLines(this.height-this.freeSpace,this.freeSpace),this.children.forEach((e=>{e.collapsed||this.copy(e)}));let e=!1;this.plugins.forEach((e=>{e.postRender&&e.postRender()})),this.plugins.forEach((t=>{t.renderTooltip&&(e=e||Boolean(t.renderTooltip()))})),e||"function"!=typeof this.options.tooltip||this.options.tooltip(null,this,null)}render(e){"number"==typeof this.lastPartialAnimationFrame&&cancelAnimationFrame(this.lastPartialAnimationFrame),this.requestedRenders=[],this.lastPartialAnimationFrame=null;const t=performance.now();this.lastGlobalAnimationFrame||(this.lastGlobalAnimationFrame=requestAnimationFrame((()=>{this.lastGlobalAnimationFrame=null,null==e||e(performance.now()-t),this.timeGrid.recalc(),this.children.forEach(((e,t)=>this.renderPlugin(t))),this.shallowRender()})))}}const te=["down","up","move","click","select"];class ne extends r.EventEmitter{static getId(){return ne.count++}constructor(e,t){super(),this.id=ne.getId(),this.parent=e,this.renderEngine=t,t.on("clear",(()=>this.clearHitRegions())),te.forEach((t=>e.on(t,((e,n,r)=>{e&&e.id!==this.id||this.resend(t,e,n,r)})))),["hover"].forEach((t=>e.on(t,((e,n)=>{e&&e.id!==this.id||this.emit(t,e,n)})))),e.on("change-position",((e,t,n,r)=>{r===this&&this.emit("change-position",e,t,n)})),this.hitRegions=[]}resend(e,...t){this.renderEngine.position<=this.parent.mouse.y&&this.renderEngine.height+this.renderEngine.position>=this.parent.mouse.y&&this.emit(e,...t)}getMouse(){const{x:e,y:t}=this.parent.mouse;return{x:e,y:t-this.renderEngine.position}}getGlobalMouse(){return this.parent.mouse}clearHitRegions(){this.hitRegions=[]}addHitRegion(e,t,n,r,i,a,o){this.hitRegions.push({type:e,data:t,x:n,y:r,w:i,h:a,cursor:o,id:this.id})}setCursor(e){this.parent.setCursor(e)}clearCursor(){this.parent.clearCursor()}}ne.count=0;const re={scrollSpeed:.5,zoomSpeed:.001,fastMultiplayer:5,active:!1};class ie extends r.EventEmitter{constructor(e,t,n){var r;super(),this.selectedRegion=null,this.hoveredRegion=null,this.moveActive=!1,this.currentCursor=null,this.keys={},this.hotkeysActive=!1,this.renderEngine=t,this.canvas=e,this.settings={hotkeys:o(re,null==n?void 0:n.hotkeys)},this.hotkeysActive=Boolean(null===(r=null==n?void 0:n.hotkeys)||void 0===r?void 0:r.active),this.hitRegions=[],this.instances=[],this.mouse={x:0,y:0},this.handleMouseWheel=this.handleMouseWheel.bind(this),this.handleMouseDown=this.handleMouseDown.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this),this.initListeners(),this.reset()}makeInstance(e){const t=new ne(this,e);return this.instances.push(t),t}reset(){this.selectedRegion=null,this.hoveredRegion=null,this.hitRegions=[]}destroy(){this.removeListeners()}initListeners(){this.canvas&&(this.canvas.addEventListener("wheel",this.handleMouseWheel),this.canvas.addEventListener("mousedown",this.handleMouseDown),this.canvas.addEventListener("mouseup",this.handleMouseUp),this.canvas.addEventListener("mouseleave",this.handleMouseUp),this.canvas.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp))}removeListeners(){this.canvas&&(this.canvas.removeEventListener("wheel",this.handleMouseWheel),this.canvas.removeEventListener("mousedown",this.handleMouseDown),this.canvas.removeEventListener("mouseup",this.handleMouseUp),this.canvas.removeEventListener("mouseleave",this.handleMouseUp),this.canvas.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp))}hotkeys(e){this.hotkeysActive=e}handleKeyDown(e){!this.keys[e.key]&&this.hotkeysActive&&(this.keys[e.key]=!0,this.continueHandleKeys())}handleKeyUp(e){this.hotkeysActive&&(this.keys[e.key]=!1)}continueHandleKeys(){this.renderEngine.render((e=>this.handleKeys(e)))}key(e){return Boolean(this.keys[e])}getSpeed(){const{fastMultiplayer:e}=this.settings.hotkeys;return this.key("Shift")?e:1}handleKeys(e){const t=this.getSpeed();if(this.key("ArrowRight")||this.key("ArrowLeft")){const n=this.key("ArrowRight"),{scrollSpeed:r}=this.settings.hotkeys,i=(n?1:-1)*r*t*e/this.renderEngine.zoom;this.renderEngine.tryToChangePosition(i),this.continueHandleKeys()}if(this.key("=")||this.key("ArrowUp")||this.key("-")||this.key("ArrowDown")){const n=this.key("=")||this.key("ArrowUp"),{zoomSpeed:r}=this.settings.hotkeys,i=(n?-1:1)*r*t*e*this.renderEngine.zoom;this.changeZoom(i,this.renderEngine.width/2),this.continueHandleKeys()}}handleMouseWheel(e){const{deltaY:t,deltaX:n}=e;e.preventDefault();const r=this.renderEngine.positionX,i=this.renderEngine.zoom,a=n/this.renderEngine.zoom;this.renderEngine.tryToChangePosition(a);const o=this.getSpeed();this.changeZoom(t/1e3*o*this.renderEngine.zoom,this.mouse.x),this.checkRegionHover(),r===this.renderEngine.positionX&&i===this.renderEngine.zoom||this.renderEngine.render()}changeZoom(e,t=this.renderEngine.width/2){const n=this.renderEngine.getRealView();this.renderEngine.setZoom(this.renderEngine.zoom-e)&&this.fixPositionAfterZoom(n,t)}fixPositionAfterZoom(e,t){const n=t/this.renderEngine.width,r=(e-this.renderEngine.width/this.renderEngine.zoom)*n;this.renderEngine.tryToChangePosition(r)}handleMouseDown(){this.moveActive=!0,this.mouseDownPosition={x:this.mouse.x,y:this.mouse.y},this.mouseDownHoveredInstance=this.hoveredInstance,this.emit("down",this.hoveredRegion,this.mouse)}handleMouseUp(){this.moveActive=!1;const e=this.mouseDownPosition&&this.mouseDownPosition.x===this.mouse.x&&this.mouseDownPosition.y===this.mouse.y;e&&this.handleRegionHit(),this.emit("up",this.hoveredRegion,this.mouse,e),e&&this.emit("click",this.hoveredRegion,this.mouse)}handleMouseMove(e){if(this.moveActive){const t=this.mouse.y-e.offsetY,n=(this.mouse.x-e.offsetX)/this.renderEngine.zoom;(t||n)&&this.emit("change-position",{deltaX:n,deltaY:t},this.mouseDownPosition,this.mouse,this.mouseDownHoveredInstance)}this.mouse.x=e.offsetX,this.mouse.y=e.offsetY,this.checkRegionHover(),this.emit("move",this.hoveredRegion,this.mouse)}handleRegionHit(){const e=this.getHoveredRegion();this.emit("select",e,this.mouse)}checkRegionHover(){const e=this.getHoveredRegion();e&&this.hoveredRegion&&e.id!==this.hoveredRegion.id&&this.emit("hover",null,this.mouse),e?(!this.currentCursor&&e.cursor?this.renderEngine.canvas.style.cursor=e.cursor:this.currentCursor||this.clearCursor(),this.hoveredRegion=e,this.emit("hover",e,this.mouse),this.renderEngine.partialRender()):this.hoveredRegion&&!e&&(this.currentCursor||this.clearCursor(),this.hoveredRegion=null,this.emit("hover",null,this.mouse),this.renderEngine.partialRender())}getHoveredRegion(){const e=this.hitRegions.find((({x:e,y:t,w:n,h:r})=>this.mouse.x>=e&&this.mouse.x<=e+n&&this.mouse.y>=t&&this.mouse.y<=t+r));if(e)return e;const t=this.instances.find((({renderEngine:e})=>e.position<=this.mouse.y&&e.height+e.position>=this.mouse.y));if(this.hoveredInstance=t,t){const e=t.renderEngine.position;return t.hitRegions.find((({x:t,y:n,w:r,h:i})=>this.mouse.x>=t&&this.mouse.x<=t+r&&this.mouse.y>=n+e&&this.mouse.y<=n+i+e))}return null}clearHitRegions(){this.hitRegions=[]}addHitRegion(e,t,n,r,i,a,o){this.hitRegions.push({type:e,data:t,x:n,y:r,w:i,h:a,cursor:o})}setCursor(e){this.renderEngine.canvas.style.cursor=e,this.currentCursor=e}clearCursor(){const e=this.getHoveredRegion();this.currentCursor=null,(null==e?void 0:e.cursor)?this.renderEngine.canvas.style.cursor=e.cursor:this.renderEngine.canvas.style.cursor=""}}class ae extends r.EventEmitter{constructor({canvas:e,plugins:t,settings:n}){var r;super();const i=null!==(r=null==n?void 0:n.styles)&&void 0!==r?r:{};this.timeGrid=new C({styles:null==i?void 0:i.timeGrid}),this.renderEngine=new ee({canvas:e,settings:{styles:null==i?void 0:i.main,options:null==n?void 0:n.options},plugins:t,timeGrid:this.timeGrid}),this.interactionsEngine=new ie(e,this.renderEngine,null==n?void 0:n.options),this.plugins=t;const a=Array(this.plugins.length).fill(null).map((()=>{const e=this.renderEngine.makeInstance();return{renderEngine:e,interactionsEngine:this.interactionsEngine.makeInstance(e)}}));this.plugins.forEach(((e,t)=>{e.init(a[t].renderEngine,a[t].interactionsEngine)})),this.renderEngine.calcMinMax(),this.renderEngine.resetView(),this.renderEngine.recalcChildrenLayout(),this.renderEngine.calcTimeGrid(),this.plugins.forEach((e=>{var t;return null===(t=e.postInit)||void 0===t?void 0:t.call(e)})),this.renderEngine.render()}render(){this.renderEngine.render()}resize(e,t){this.renderEngine.render((()=>this.renderEngine.resize(e,t)))}execOnPlugins(e,...t){let n=0;for(;n<this.plugins.length;)this.plugins[n][e]&&this.plugins[n][e](...t),n++}setSettings(e){var t,n;this.timeGrid.setSettings({styles:null===(t=e.styles)||void 0===t?void 0:t.timeGrid}),this.renderEngine.setSettings({options:e.options,styles:null===(n=e.styles)||void 0===n?void 0:n.main,patterns:e.patterns}),this.plugins.forEach((t=>{var n,r;return null===(n=t.setSettings)||void 0===n?void 0:n.call(t,{styles:null===(r=e.styles)||void 0===r?void 0:r[t.name]})})),this.renderEngine.render()}setZoom(e,t){const n=this.renderEngine.width/(t-e);this.renderEngine.setPositionX(e),this.renderEngine.setZoom(n),this.renderEngine.render()}hotkeys(e){this.interactionsEngine.hotkeys(e)}}const oe={};class se extends ae{constructor({canvas:e,data:t,marks:n,waterfall:r,timeframeTimeseries:i,timeseries:a,colors:o,settings:s=oe,plugins:l=[]}){var c;const h=[],{headers:{waterfall:u="waterfall",flameChart:d="flame chart"}={}}=s,f=null!==(c=null==s?void 0:s.styles)&&void 0!==c?c:{},p=new w({styles:null==f?void 0:f.timeGridPlugin});let g,m,b,v,x;h.push(p),a&&(x=new N({data:a,settings:{styles:null==f?void 0:f.timeseriesPlugin}}),h.push(x)),n&&(g=new T({data:n}),g.on("select",(e=>this.emit("select",e))),h.push(g)),r&&(m=new O({data:r,settings:{styles:null==f?void 0:f.waterfallPlugin}}),m.on("select",(e=>this.emit("select",e))),t&&h.push(new q(u,{styles:null==f?void 0:f.togglePlugin})),h.push(m)),t&&(v=new y({data:t,colors:o}),v.on("select",(e=>this.emit("select",e))),r&&h.push(new q(d,{styles:null==f?void 0:f.togglePlugin})),h.push(v)),(t||r||i)&&(b=new j({flameChartNodes:t,waterfall:r,timeseries:i,settings:{styles:null==f?void 0:f.timeframeSelectorPlugin}}),h.unshift(b)),super({canvas:e,settings:s,plugins:[...h,...l]}),v&&b&&(this.setNodes=e=>{v&&v.setData(e),b&&b.setFlameChartNodes(e)},this.setFlameChartPosition=({x:e,y:t})=>{"number"==typeof e&&this.renderEngine.setPositionX(e),"number"==typeof t&&v&&v.setPositionY(t),this.renderEngine.render()}),g&&(this.setMarks=e=>{g&&g.setMarks(e)}),m&&(this.setWaterfall=e=>{m&&m.setData(e),b&&b.setWaterfall(e)}),x&&(this.setTimeseries=e=>{x&&x.setData(e)}),b&&(this.setTimeframeTimeseries=e=>{null==b||b.setTimeseries(e)})}}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={id:r,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.b=document.baseURI||self.location.href;n(256)})();</script></head><body><div class="root"><div id="wrapper"><canvas id="canvas"></canvas></div><div class="footer"><div id="table-node"><div class="row"><div class="col-md-12"><table id="resources-list" class="table table-striped cell-border" cellspacing="4" width="100%"><tfoot><tr><th colspan="1"></th><th colspan="1"></th><th colspan="1"></th><th colspan="1"></th><th colspan="1"></th></tr></tfoot></table></div></div><div class="selectedNode"><div id="selected-node"></div></div></div></div><script>window.onload = function () {
    var data = {{{json-data}}};
    createChart(data.data, data.marks);
  }</script></div></body></html>